We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c4369d commit e2a8774Copy full SHA for e2a8774
helix-term/src/ui/editor.rs
@@ -1235,15 +1235,9 @@ impl Component for EditorView {
1235
cx.editor.count = None;
1236
1237
let config = cx.editor.config();
1238
- let mode = cx.editor.mode();
1239
let (view, doc) = current!(cx.editor);
1240
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
- }
+ doc.append_changes_to_history(view);
1247
1248
EventResult::Consumed(None)
1249
}
0 commit comments