Save an undo checkpoint before paste in insert mode (#8121)

This commit is contained in:
Michael Davis 2024-11-20 16:02:10 -06:00 committed by GitHub
parent 239262e094
commit 59b020ec91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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