Browse Source

Update show-hint.js

Clean up.
Michael Herzog 3 years ago
parent
commit
a621def2a4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/js/libs/codemirror/addon/show-hint.js

+ 2 - 2
editor/js/libs/codemirror/addon/show-hint.js

@@ -28,7 +28,7 @@
 
 
   CodeMirror.defineExtension("showHint", function(options) {
   CodeMirror.defineExtension("showHint", function(options) {
     options = parseOptions(this, this.getCursor("start"), options);
     options = parseOptions(this, this.getCursor("start"), options);
-    var selections = this.listSelections()
+    var selections = this.listSelections();
     if (selections.length > 1) return;
     if (selections.length > 1) return;
     // By default, don't allow completion when something is selected.
     // By default, don't allow completion when something is selected.
     // A hint function can have a `supportsSelection` property to
     // A hint function can have a `supportsSelection` property to
@@ -50,7 +50,7 @@
 
 
   CodeMirror.defineExtension("closeHint", function() {
   CodeMirror.defineExtension("closeHint", function() {
     if (this.state.completionActive) this.state.completionActive.close()
     if (this.state.completionActive) this.state.completionActive.close()
-  })
+  });
 
 
   function Completion(cm, options) {
   function Completion(cm, options) {
     this.cm = cm;
     this.cm = cm;