Picker: Reset the cursor on prompt change
This commit is contained in:
parent
8555248b01
commit
009bbdaf8d
1 changed files with 2 additions and 0 deletions
|
@ -512,6 +512,8 @@ impl<T: 'static + Send + Sync, D: 'static + Send + Sync> Picker<T, D> {
|
||||||
if self.query == old_query {
|
if self.query == old_query {
|
||||||
return;
|
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.
|
// Have nucleo reparse each changed column.
|
||||||
for (i, column) in self
|
for (i, column) in self
|
||||||
.columns
|
.columns
|
||||||
|
|
Loading…
Add table
Reference in a new issue