mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't autocomplete for commands like \\
, \[
, \:
, etc
This commit is contained in:
parent
f66982dd8b
commit
70e5279ba2
1 changed files with 3 additions and 3 deletions
|
@ -128,9 +128,9 @@ define [
|
|||
if lineUpToCursor.match(/.*%.*/)
|
||||
return
|
||||
lastCharIsBackslash = lineUpToCursor.slice(-1) == "\\"
|
||||
lastTwoCharsAreBackslash = lineUpToCursor.slice(-2) == "\\\\"
|
||||
# Don't offer autocomplete on double-backslash
|
||||
if lastTwoCharsAreBackslash
|
||||
lastTwoChars = lineUpToCursor.slice(-2)
|
||||
# Don't offer autocomplete on double-backslash, backslash-colon, etc
|
||||
if lastTwoChars.match(/^\\[^a-z]$/)
|
||||
@editor?.completer?.detach?()
|
||||
return
|
||||
commandFragment = getLastCommandFragment(lineUpToCursor)
|
||||
|
|
Loading…
Reference in a new issue