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.

Use consistent naming

Conrad Irwin55dd0b176c47
diff --git a/crates/vim/src/normal/substitute.rs b/crates/vim/src/normal/substitute.rs
index efdd43d0a4a..23b545abd84 100644
--- a/crates/vim/src/normal/substitute.rs
+++ b/crates/vim/src/normal/substitute.rs
@@ -10,8 +10,8 @@ actions!(vim, [Substitute, SubstituteLine]);
pub(crate) fn init(cx: &mut AppContext) {
cx.add_action(|_: &mut Workspace, _: &Substitute, cx| {
Vim::update(cx, |vim, cx| {
- let times = vim.pop_number_operator(cx);
- substitute(vim, times, vim.state().mode == Mode::VisualLine, cx);
+ let count = vim.pop_number_operator(cx);
+ substitute(vim, count, vim.state().mode == Mode::VisualLine, cx);
})
});