mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-03 15:02:50 +00:00
Don't offer autocomplete for double-backslash
This commit is contained in:
parent
952a765235
commit
75b0e0cf51
1 changed files with 5 additions and 0 deletions
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue