Avoid leaving selected item index past end of matches list
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
354882f2c0
commit
f5af5f7334
1 changed files with 1 additions and 0 deletions
|
@ -1332,6 +1332,7 @@ impl CompletionsMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
self.matches = matches.into();
|
self.matches = matches.into();
|
||||||
|
self.selected_item = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue