From 089ea5da50aad5ec9a5273ccff13769514d1ce66 Mon Sep 17 00:00:00 2001 From: Yicheng Liu Date: Thu, 27 Feb 2025 03:21:12 +0800 Subject: [PATCH] vim: Fix back quotes not recognized as object (#24999) Currently back quotes ``` `` ``` not recognized as an object in vim mode, so ```c i ` ```, ```d i ` ``` not working. It seems to be a typo introduced in #22632 : The`DoubleQuotes` line was doubled while the `BackQuotes` line was missing. Release Notes: - vim: Fixed back quotes ``` `` ``` not recognized as object. Co-authored-by: Marshall Bowers --- crates/vim/src/object.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/vim/src/object.rs b/crates/vim/src/object.rs index 689763f8b426286a360cd151f90e70d782d4cc14..7a7fcae0cfb634ee105630aaccb5c35509ed1514 100644 --- a/crates/vim/src/object.rs +++ b/crates/vim/src/object.rs @@ -312,8 +312,8 @@ pub fn register(editor: &mut Editor, cx: &mut Context) { Vim::action(editor, cx, |vim, _: &AnyBrackets, window, cx| { vim.object(Object::AnyBrackets, window, cx) }); - Vim::action(editor, cx, |vim, _: &DoubleQuotes, window, cx| { - vim.object(Object::DoubleQuotes, window, cx) + Vim::action(editor, cx, |vim, _: &BackQuotes, window, cx| { + vim.object(Object::BackQuotes, window, cx) }); Vim::action(editor, cx, |vim, _: &DoubleQuotes, window, cx| { vim.object(Object::DoubleQuotes, window, cx)