mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
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.selected_item = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue