summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c2
1 files changed, 2 insertions, 0 deletions
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.