From c1a83ad4f6496a54fa28337f1b2a1c54d07ac8fc Mon Sep 17 00:00:00 2001 From: Jack Wright Date: Fri, 11 Oct 2024 09:51:58 -0700 Subject: [PATCH] Fixed delete case, I was comparing right side twice --- src/edit_mode/vi/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit_mode/vi/command.rs b/src/edit_mode/vi/command.rs index 1698832f..f00b549b 100644 --- a/src/edit_mode/vi/command.rs +++ b/src/edit_mode/vi/command.rs @@ -13,7 +13,7 @@ where let _ = input.next(); match input.next() { Some(c) - if is_valid_change_inside_right(c) || is_valid_change_inside_right(c) => + if is_valid_change_inside_left(c) || is_valid_change_inside_right(c) => { Some(Command::DeleteInside(*c)) }