summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-11 15:13:11 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-11 15:13:11 -0500
commit9396a9f602727bc78d7c9dcc95142038edfad51a (patch)
treeb6afc92e959590ebde903969f914459e9d25c760 /buffer.c
parent143ed955b939b3292801fb9503ad8759467defcd (diff)
fixed some problems with find+replace
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index dfca9f8..9ac5fd5 100644
--- a/buffer.c
+++ b/buffer.c
@@ -518,6 +518,7 @@ static bool buffer_edit_does_anything(TextBuffer *buffer, BufferEdit *edit) {
static bool buffer_edit_split(TextBuffer *buffer) {
BufferEdit *last_edit = arr_lastp(buffer->undo_history);
if (!last_edit) return true;
+ if (buffer->will_chain_edits) return true;
if (buffer->chaining_edits) return false;
double curr_time = time_get_seconds();
double undo_time_cutoff = buffer_settings(buffer)->undo_save_time; // only keep around edits for this long (in seconds).