mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
vim: Fix :s command ignoring case sensitivity settings (#42457)
Closes #36260 This PR fixes the vim :s Command Ignores Case Sensitivity Settings Release Notes: - N/A
This commit is contained in:
parent
e27590432f
commit
04e92fb2d2
1 changed files with 6 additions and 1 deletions
|
|
@ -506,7 +506,12 @@ impl Vim {
|
|||
search_bar.is_contains_uppercase(&search),
|
||||
);
|
||||
} else {
|
||||
options.set(SearchOptions::CASE_SENSITIVE, false)
|
||||
// Fallback: no explicit i/I flags and smartcase disabled;
|
||||
// use global editor.search.case_sensitive.
|
||||
options.set(
|
||||
SearchOptions::CASE_SENSITIVE,
|
||||
EditorSettings::get_global(cx).search.case_sensitive,
|
||||
)
|
||||
}
|
||||
|
||||
if !replacement.flag_g {
|
||||
|
|
|
|||
Loading…
Reference in a new issue