summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buffer.c2
1 files changed, 2 insertions, 0 deletions
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: