diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index ee2949fa0f05..073413989665 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4339,6 +4339,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