From 913a5a5dfbcf6789a1ac6b8c32fb23cdcdde995b Mon Sep 17 00:00:00 2001 From: pommicket Date: Sat, 5 Aug 2023 22:33:12 -0400 Subject: scroll to cursor on undo/redo --- buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buffer.c b/buffer.c index 64d9024..070a40e 100644 --- a/buffer.c +++ b/buffer.c @@ -2487,6 +2487,7 @@ void buffer_undo(TextBuffer *buffer, i64 ntimes) { chain_next = chain; } else break; } + buffer_scroll_to_cursor(buffer); } void buffer_redo(TextBuffer *buffer, i64 ntimes) { @@ -2512,6 +2513,7 @@ void buffer_redo(TextBuffer *buffer, i64 ntimes) { chain_next = chain; } else break; } + buffer_scroll_to_cursor(buffer); } // if you do: -- cgit v1.2.3