diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 31ea75814..4bc5e1358 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -3948,6 +3948,10 @@ fn paste_impl( return; } + if mode == Mode::Insert { + doc.append_changes_to_history(view); + } + let repeat = std::iter::repeat( // `values` is asserted to have at least one entry above. values