Show More
@@ -339,6 +339,12 b' define([' | |||||
339 | return false; |
|
339 | return false; | |
340 | } |
|
340 | } | |
341 | } |
|
341 | } | |
|
342 | var pre_cursor = editor.getRange({line:cur.line,ch:0},cur); | |||
|
343 | if (pre_cursor.trim() === "") { | |||
|
344 | // Don't show tooltip if the part of the line before the cursor | |||
|
345 | // is empty. In this case, let CodeMirror handle indentation. | |||
|
346 | return false; | |||
|
347 | } | |||
342 | this.tooltip.request(that); |
|
348 | this.tooltip.request(that); | |
343 | event.codemirrorIgnore = true; |
|
349 | event.codemirrorIgnore = true; | |
344 | event.preventDefault(); |
|
350 | event.preventDefault(); |
General Comments 0
You need to be logged in to leave comments.
Login now