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: Remove duplicate ShellCommand action registration (#56937)

Dynamicerd3756f3025d9
diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs
index e7d68caa79c..274fabac9a7 100644
--- a/crates/vim/src/command.rs
+++ b/crates/vim/src/command.rs
@@ -347,15 +347,6 @@ pub fn register(editor: &mut Editor, cx: &mut Context<Vim>) {
);
});
- Vim::action(editor, cx, |vim, _: &ShellCommand, window, cx| {
- let Some(workspace) = vim.workspace(window, cx) else {
- return;
- };
- workspace.update(cx, |workspace, cx| {
- command_palette::CommandPalette::toggle(workspace, "'<,'>!", window, cx);
- })
- });
-
Vim::action(editor, cx, |vim, action: &VimSave, window, cx| {
if let Some(range) = &action.range {
vim.update_editor(cx, |vim, editor, cx| {