[ghex/gtk4-port: 91/91] cut cursor positioning.




commit 79d58f47d2752c2ca6dec4e671798aeb76e2f8ae
Author: Logan Rathbone <poprocks gmail com>
Date:   Wed Aug 11 19:32:17 2021 -0400

    cut cursor positioning.
    
    did I actually fix this this time? Let's hope so.

 src/gtkhex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index 8809b919..46eec3a3 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -2909,7 +2909,7 @@ gtk_hex_delete_selection(GtkHex *gh)
        hex_document_delete_data (gh->document,
                        MIN(start, end), len, TRUE);
 
-       gtk_hex_set_cursor (gh, gh->cursor_pos);
+       gtk_hex_set_cursor (gh, start);
 }
 
 /*


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