Skip to content

Commit

Permalink
Auto suggestion error when type "\_" character, fixes #570
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Sep 16, 2020
1 parent 4d8aa74 commit 2d82d47
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3962,7 +3962,8 @@ private String matchPreviousCommand(String buffer) {
StringBuilder sb = new StringBuilder();
char prev = '0';
for (char c: buffer.toCharArray()) {
if ((c == '(' || c == ')' || c == '[' || c == ']' || c == '{' || c == '}' || c == '^' || c == '*') && prev != '\\' ) {
if ((c == '(' || c == ')' || c == '[' || c == ']' || c == '{' || c == '}' || c == '^' || c == '*' || c == '\\')
&& prev != '\\' ) {
sb.append('\\');
}
sb.append(c);
Expand Down

0 comments on commit 2d82d47

Please sign in to comment.