mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Ensure one history completion for real
This commit is contained in:
parent
2485b1d2c2
commit
32ac11fe9d
1 changed files with 4 additions and 1 deletions
|
@ -89,7 +89,10 @@ export class HistoryCompletionSource extends Completions.CompletionSourceFuse {
|
|||
// ago, then reselect it so that users don't lose their selections.
|
||||
this.options.forEach(option => option.state = "normal")
|
||||
for (const option of this.options) {
|
||||
if (lastFocused !== undefined && lastFocused.value === option.value) this.select(option)
|
||||
if (lastFocused !== undefined && lastFocused.value === option.value) {
|
||||
this.select(option)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
return this.updateDisplay()
|
||||
|
|
Loading…
Add table
Reference in a new issue