[ghex] hw: Don't let cursor scroll off if geometry set



commit 90fa5915526e3a5d02f14ea60734e2ca0d492468
Author: Logan Rathbone <poprocks gmail com>
Date:   Wed Dec 29 14:09:54 2021 -0500

    hw: Don't let cursor scroll off if geometry set

 src/gtkhex.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index 4e65cbb..9aa5a09 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -1083,7 +1083,7 @@ render_lines (HexWidget *self,
        }
 
 no_more_lines_to_draw:
-       if (! cursor_drawn)
+       if (! cursor_drawn && cursor_line <= self->vis_lines)
        {
                DO_RENDER_CURSOR
        }
@@ -3437,7 +3437,6 @@ void hex_widget_delete_autohighlight (HexWidget *self,
        g_free (ahl);
 }
 
-/* FIXME - make this actually work. */
 /**
  * hex_widget_set_geometry:
  * @cpl: columns per line which should be displayed, or 0 for default


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]