aboutsummaryrefslogtreecommitdiffstats
path: root/pages/vomnibar.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'pages/vomnibar.coffee')
-rw-r--r--pages/vomnibar.coffee6
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee
index 18ad5945..2caec140 100644
--- a/pages/vomnibar.coffee
+++ b/pages/vomnibar.coffee
@@ -195,11 +195,15 @@ class VomnibarUI
updateOnInput: =>
@completer.cancel()
+ updateSynchronously = false
+ if 0 < @selection and @completions[@selection].insertPrefixOnInput
+ @input.value = @completions[@selection].insertPrefixOnInput + @input.value
+ updateSynchronously = true
# If the user types, then don't reset any previous text, and reset the selection.
if @previousInputValue?
@previousInputValue = null
@selection = -1
- @update false
+ @update updateSynchronously
clearUpdateTimer: ->
if @updateTimer?