Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Revert "Add a next_mode to vim::Paste instead of hard-coding Normal mode (#27897) (#28162)
Marshall Bowers41827372feda
diff --git a/crates/vim/src/normal/paste.rs b/crates/vim/src/normal/paste.rsindex d869a05e5cf..3f3e27c4579 100644--- a/crates/vim/src/normal/paste.rs+++ b/crates/vim/src/normal/paste.rs@@ -3,11 +3,10 @@ use gpui::{Context, Window, impl_actions};use language::{Bias, SelectionGoal};use schemars::JsonSchema;use serde::Deserialize;-use settings::Settings;use std::cmp;use crate::{- Vim, VimSettings,+ Vim,motion::{Motion, MotionKind},object::Object,state::{Mode, Register},@@ -204,8 +203,7 @@ impl Vim {})});});- let next_mode = VimSettings::get_global(cx).default_mode;- self.switch_mode(next_mode, true, window, cx);+ self.switch_mode(Mode::Normal, true, window, cx);}pub fn replace_with_register_object(