From dd5c78a46f047b6c673123d3ad914a3184c74b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Fri, 27 Jan 2017 21:33:12 +0100 Subject: [PATCH] Fix cursor hiding --- hex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hex.c b/hex.c index 26664dd..80f19e6 100644 --- a/hex.c +++ b/hex.c @@ -787,7 +787,7 @@ app_on_refresh (void *user_data) int64_t diff = g_ctx.view_cursor - g_ctx.view_top; int64_t y = diff / ROW_SIZE; int64_t x = diff % ROW_SIZE; - if (y >= 0 && y < app_visible_rows ()) + if (diff >= 0 && y < app_visible_rows ()) { curs_set (1); move (y, 10 + x*2 + g_ctx.view_skip_nibble + x/8 + x/2);