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(