Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim: Add repeat support for add_surround (#14746)

Hans7d30175527b0
diff --git a/crates/vim/src/vim.rs b/crates/vim/src/vim.rs
index 43915d796dc..74c17f7bf17 100644
--- a/crates/vim/src/vim.rs
+++ b/crates/vim/src/vim.rs
@@ -680,6 +680,9 @@ impl Vim {
| Operator::DeleteSurrounds
) {
self.update_state(|state| state.operator_stack.clear());
+ if let Operator::AddSurrounds { target: None } = operator {
+ self.start_recording(cx);
+ }
};
self.update_state(|state| state.operator_stack.push(operator));
self.sync_vim_settings(cx);