From 1f064157740b7ca8d28fc202ecaf6237c9ea3b22 Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 14 Sep 2010 16:48:20 +0000 Subject: [PATCH] minibar.js: bug fix: the current word should be accepted when you press enter if it matches one of the possible completions exactly The current word is also accepted if there is only one remaining possible completion. --- src/runtime/javascript/minibar/minibar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/javascript/minibar/minibar.js b/src/runtime/javascript/minibar/minibar.js index f20d66ab9..5bf586e5b 100644 --- a/src/runtime/javascript/minibar/minibar.js +++ b/src/runtime/javascript/minibar/minibar.js @@ -241,7 +241,7 @@ function complete_typed(inp) { function finish_typed(inp) { //alert("finish_typed "+inp.value); var box=element("words"); - var w=inp.value+" "; + var w=inp.value; if(box.completions.length==1) add_word(box.completions[0]); else if(elem(w,box.completions))