diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-11 15:13:11 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-11 15:13:11 -0500 |
commit | 9396a9f602727bc78d7c9dcc95142038edfad51a (patch) | |
tree | b6afc92e959590ebde903969f914459e9d25c760 /buffer.c | |
parent | 143ed955b939b3292801fb9503ad8759467defcd (diff) |
fixed some problems with find+replace
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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). |