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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user