Skip to content

Commit e2a8774

Browse files
committed
Write pre-manipulation pastes to the revision history
1 parent 9c4369d commit e2a8774

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

helix-term/src/ui/editor.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,15 +1235,9 @@ impl Component for EditorView {
12351235
cx.editor.count = None;
12361236

12371237
let config = cx.editor.config();
1238-
let mode = cx.editor.mode();
12391238
let (view, doc) = current!(cx.editor);
12401239
view.ensure_cursor_in_view(doc, config.scrolloff);
1241-
1242-
// Store a history state if not in insert mode. Otherwise wait till we exit insert
1243-
// to include any edits to the paste in the history state.
1244-
if mode != Mode::Insert {
1245-
doc.append_changes_to_history(view);
1246-
}
1240+
doc.append_changes_to_history(view);
12471241

12481242
EventResult::Consumed(None)
12491243
}

0 commit comments

Comments
 (0)