From c507f7febf0d8827dafcc6fd543678af447c056c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 5 Sep 2017 18:00:57 +0900 Subject: [PATCH] reset completion --- src/console/console.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/console/console.js b/src/console/console.js index 93b7297..c32eca0 100644 --- a/src/console/console.js +++ b/src/console/console.js @@ -111,6 +111,11 @@ const showCommand = (text) => { let input = window.document.querySelector('#vimvixen-console-command-input'); input.value = text; input.focus(); + + completion = null; + let container = window.document.querySelector('#vimvixen-console-completion'); + container.innerHTML = ''; + messages.send(parent, keyupMessage(input)); } const showError = (text) => {