mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Picker: Reset the cursor on prompt change
This commit is contained in:
parent
8555248b01
commit
009bbdaf8d
@ -512,6 +512,8 @@ fn handle_prompt_change(&mut self) {
|
||||
if self.query == old_query {
|
||||
return;
|
||||
}
|
||||
// If the query has meaningfully changed, reset the cursor to the top of the results.
|
||||
self.cursor = 0;
|
||||
// Have nucleo reparse each changed column.
|
||||
for (i, column) in self
|
||||
.columns
|
||||
|
Loading…
Reference in New Issue
Block a user