Fix cursor hiding

This commit is contained in:
Přemysl Eric Janouch 2017-01-27 21:33:12 +01:00
parent 929d9ec6ba
commit dd5c78a46f
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 1 deletions

2
hex.c
View File

@ -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);