aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-01-27 21:33:12 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-01-27 21:33:12 +0100
commitdd5c78a46f047b6c673123d3ad914a3184c74b95 (patch)
tree4c96eda829864b1e42584da5b24ae2e1e6bb655d
parent929d9ec6baffa5c8092a98b2828cd8a3b097a825 (diff)
downloadhex-dd5c78a46f047b6c673123d3ad914a3184c74b95.tar.gz
hex-dd5c78a46f047b6c673123d3ad914a3184c74b95.tar.xz
hex-dd5c78a46f047b6c673123d3ad914a3184c74b95.zip
Fix cursor hiding
-rw-r--r--hex.c2
1 files changed, 1 insertions, 1 deletions
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);