mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
Save an undo checkpoint before paste in insert mode (#8121)
This commit is contained in:
parent
239262e094
commit
59b020ec91
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user