Commits

Pagan Gazzard committed 11bf9d3

Take the replacement text from the original completions as any whitespace is removed when the completion is taking from sel.options

Comments (0)

Files changed (1)

lib/util/simple-hint.js

       complete.parentNode.removeChild(complete);
     }
     function pick() {
-      insert(sel.options[sel.selectedIndex].text);
+      insert(completions[sel.selectedIndex].text);
       close();
       setTimeout(function(){editor.focus();}, 50);
     }