vim: Don't enter visual mode in search/go to definition
Fixes: zed-industries/community#1514 Contributes: zed-industries/community#1284
This commit is contained in:
@@ -936,9 +936,8 @@ impl SearchableItem for Editor {
|
||||
cx: &mut ViewContext<Self>,
|
||||
) {
|
||||
self.unfold_ranges([matches[index].clone()], false, true, cx);
|
||||
self.change_selections(Some(Autoscroll::fit()), cx, |s| {
|
||||
s.select_ranges([matches[index].clone()])
|
||||
});
|
||||
let range = self.range_for_match(&matches[index]);
|
||||
self.change_selections(Some(Autoscroll::fit()), cx, |s| s.select_ranges([range]));
|
||||
}
|
||||
|
||||
fn match_index_for_direction(
|
||||
|
||||
Reference in New Issue
Block a user