ueokande / vim-vixen

Accelerates your web browsing with Vim power!!
https://ueokande.github.io/vim-vixen/
MIT License
2.11k stars 138 forks source link

Await fetching completions done completely #1418

Closed ueokande closed 2 years ago

ueokande commented 2 years ago

By https://github.com/ueokande/vim-vixen/pull/1099, the console delays completions in asynchronous. It can occur that is input value does not match the displayed completions. It can occur that is input value does not match the displayed completions. For example, the completion item Site A is selected, but the input field shows Site B. The reproduce steps the following:

  1. Press o to show :open command
  2. Type some keys
  3. Pres Tab key immediately, before the completions are displayed.

This change awaits fetching completions when users press the Tab key to prevent the issue.