[autocomplete] avoid a rerender

This commit is contained in:
Shish 2023-12-29 10:38:24 +00:00
parent 15a07205fd
commit 6608e3c33e

View file

@ -28,7 +28,9 @@ function getCurrentWord(element) {
* @param {HTMLInputElement} element
*/
function updateCompletions(element) {
highlightCompletion(element, -1);
// Reset selction, but no need to validate and re-render
// highlightCompletion(element, -1);
element.selected_completion = -1;
// get the word before the cursor
var word = getCurrentWord(element);