From cbd9b4cc39dafa85ca52e0a7693f601f30e54a07 Mon Sep 17 00:00:00 2001 From: jneem Date: Tue, 8 Apr 2025 22:03:55 +0700 Subject: [PATCH] Switch back to the default mode after paste (#28304) Now that the flaky tests are disabled, this should work... Release Notes: - Fixed vim paste action to switch back to the configured default mode. --- crates/vim/src/normal/paste.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/vim/src/normal/paste.rs b/crates/vim/src/normal/paste.rs index 3f3e27c45799ce3fe7b4824a15dbfe9d4b8cdc1b..2aaa2a4b7cdb9f2782ebb4c5c356c8ef257c6c27 100644 --- a/crates/vim/src/normal/paste.rs +++ b/crates/vim/src/normal/paste.rs @@ -203,7 +203,8 @@ impl Vim { }) }); }); - self.switch_mode(Mode::Normal, true, window, cx); + + self.switch_mode(self.default_mode(cx), true, window, cx); } pub fn replace_with_register_object(