diff options
author | pommicket <pommicket@gmail.com> | 2023-08-05 22:33:12 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-05 22:33:12 -0400 |
commit | 913a5a5dfbcf6789a1ac6b8c32fb23cdcdde995b (patch) | |
tree | 24265598ce4bf860b2e90c2cce3f57693585afd8 | |
parent | 93023da1f9ed1e40d4e4317d20dbf8398017eee7 (diff) |
scroll to cursor on undo/redo
-rw-r--r-- | buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |