diff --git a/lib/util/simple-hint.js b/lib/util/simple-hint.js
index <HASH>..<HASH> 100644
--- a/lib/util/simple-hint.js
+++ b/lib/util/simple-hint.js
@@ -2,6 +2,10 @@
   CodeMirror.simpleHint = function(editor, getHints) {
     // We want a single cursor position.
     if (editor.somethingSelected()) return;
+    //don't show completion if the token is empty
+    var tempToken = editor.getTokenAt(editor.getCursor());
+    if(!(/[\S]/gi.test(tempToken.string))) return;
+
     var result = getHints(editor);
     if (!result || !result.list.length) return;
     var completions = result.list;
bug fix - don't show autocompletion hints if the token is empty