Don't select next match when toggling buffer search option

This commit is contained in:
Antonio Scandurra 2022-06-16 14:06:47 +02:00
parent a835dcefa2
commit d0d6c27ae9

View file

@ -361,7 +361,7 @@ impl BufferSearchBar {
SearchOption::Regex => &mut self.regex,
};
*value = !*value;
self.update_matches(true, cx);
self.update_matches(false, cx);
cx.notify();
}