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

  • Participants
  • Parent commits 9484b96

Comments (0)

Files changed (1)

File 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);
     }