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.
This commit is contained in:
jneem 2025-04-08 22:03:55 +07:00 committed by GitHub
parent 64f8b1e739
commit cbd9b4cc39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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( pub fn replace_with_register_object(