Switch back to the default mode after paste (#28304)
jneem
created
Now that the flaky tests are disabled, this should work...
Release Notes:
- Fixed vim paste action to switch back to the configured default mode.
Change summary
crates/vim/src/normal/paste.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Detailed changes
@@ -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(