Skip to content

Commit

Permalink
Fix so latex completion do not interfere with path completion in stri…
Browse files Browse the repository at this point in the history
…ngs.
  • Loading branch information
dhoegh committed Nov 24, 2014
1 parent 63b2ae9 commit 1c0236e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ end

function latex_completions(string, pos)
slashpos = rsearch(string, '\\', pos)
if rsearch(string, whitespace_chars, pos) < slashpos
if rsearch(string, whitespace_chars, pos) < slashpos && !(1 < slashpos && (string[slashpos-1]=='\\'))
# latex symbol substitution
s = string[slashpos:pos]
latex = get(latex_symbols, s, "")
Expand Down

0 comments on commit 1c0236e

Please sign in to comment.