vim: Avoid collapsing selections on editor creation when vim_mode is disabled

This commit is contained in:
Max Brunsfeld 2022-06-04 15:01:43 -07:00
parent eae7c2267c
commit 905fbacbc7

View File

@ -157,7 +157,7 @@ impl Vim {
map.clip_point(selection.head(), Bias::Left),
selection.goal,
);
if state.empty_selections_only() {
if self.enabled && state.empty_selections_only() {
selection.collapse_to(selection.head(), selection.goal)
}
});