Skip to content

Commit 4f4d093

Browse files
authored
Fix undo grouping of backspacing (#590)
This regressed in 091b742.
1 parent 5962e31 commit 4f4d093

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/buffer/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,8 +2555,7 @@ impl TextBuffer {
25552555
self.set_cursor_internal(cursor);
25562556

25572557
// If both the last and this are a Write/Delete operation, we skip allocating a new undo history item.
2558-
if cursor_before.offset != cursor.offset
2559-
|| history_type != self.last_history_type
2558+
if history_type != self.last_history_type
25602559
|| !matches!(history_type, HistoryType::Write | HistoryType::Delete)
25612560
{
25622561
self.redo_stack.clear();

0 commit comments

Comments
 (0)