Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
vim: Handle case sensitive search editor setting (#32276)
Dino79e7ccc1fe7e
diff --git a/crates/vim/src/normal/search.rs b/crates/vim/src/normal/search.rsindex 2f723198b6e..1c45e6de4ce 100644--- a/crates/vim/src/normal/search.rs+++ b/crates/vim/src/normal/search.rs@@ -1,9 +1,10 @@-use editor::Editor;+use editor::{Editor, EditorSettings};use gpui::{Context, Window, actions, impl_actions, impl_internal_actions};use language::Point;use schemars::JsonSchema;use search::{BufferSearchBar, SearchOptions, buffer_search};use serde_derive::Deserialize;+use settings::Settings;use std::{iter::Peekable, str::Chars};use util::serde::default_true;use workspace::{notifications::NotifyResultExt, searchable::Direction};@@ -158,6 +159,9 @@ impl Vim {if action.backwards {options |= SearchOptions::BACKWARDS;}+ if EditorSettings::get_global(cx).search.case_sensitive {+ options |= SearchOptions::CASE_SENSITIVE;+ }search_bar.set_search_options(options, cx);let prior_mode = if self.temp_mode {Mode::Insert