vim: Add U to undo last line (#33571)

Closes #14760

Still TODO:

* Vim actually undoes *many* changes if they're all on the same line.

Release Notes:

- vim: Add `U` to return to the last changed line and undo
This commit is contained in:
Conrad Irwin
2025-07-08 21:24:43 -06:00
committed by GitHub
parent df57754baf
commit 8e8a772c2d
7 changed files with 303 additions and 8 deletions
+2
View File
@@ -375,6 +375,7 @@ pub(crate) struct Vim {
pub(crate) current_tx: Option<TransactionId>,
pub(crate) current_anchor: Option<Selection<Anchor>>,
pub(crate) undo_modes: HashMap<TransactionId, Mode>,
pub(crate) undo_last_line_tx: Option<TransactionId>,
selected_register: Option<char>,
pub search: SearchState,
@@ -422,6 +423,7 @@ impl Vim {
stored_visual_mode: None,
current_tx: None,
undo_last_line_tx: None,
current_anchor: None,
undo_modes: HashMap::default(),