Don't offer autocomplete for double-backslash
This commit is contained in:
+5
@@ -128,6 +128,11 @@ define [
|
||||
if lineUpToCursor.match(/.*%.*/)
|
||||
return
|
||||
lastCharIsBackslash = lineUpToCursor.slice(-1) == "\\"
|
||||
lastTwoCharsAreBackslash = lineUpToCursor.slice(-2) == "\\\\"
|
||||
# Don't offer autocomplete on double-backslash
|
||||
if lastTwoCharsAreBackslash
|
||||
@editor?.completer?.detach?()
|
||||
return
|
||||
commandFragment = getLastCommandFragment(lineUpToCursor)
|
||||
commandName = getCommandNameFromFragment(commandFragment)
|
||||
if commandName in ['begin', 'end']
|
||||
|
||||
Reference in New Issue
Block a user