From d8cffa94dc38ffa1e9af64a9950df7e9acd4bde9 Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 23 Mar 2023 16:22:27 -0400 Subject: separate :increase-number in undo history --- buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buffer.c b/buffer.c index eaf2d4b..5090306 100644 --- a/buffer.c +++ b/buffer.c @@ -1983,7 +1983,9 @@ bool buffer_change_number_at_pos(TextBuffer *buffer, BufferPos *ppos, i64 by) { } void buffer_change_number_at_cursor(TextBuffer *buffer, i64 by) { + buffer_start_edit_chain(buffer); buffer_change_number_at_pos(buffer, &buffer->cursor_pos, by); + buffer_end_edit_chain(buffer); } // decrease the number of lines in the buffer. -- cgit v1.2.3