Skip to content

Commit

Permalink
Auto suggestion error when type Asterisk character (*), fixes #548
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jun 22, 2020
1 parent 3b79730 commit dbf4118
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3962,7 +3962,7 @@ 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 == '^') && prev != '\\' ) {
if ((c == '(' || c == ')' || c == '[' || c == ']' || c == '{' || c == '}' || c == '^' || c == '*') && prev != '\\' ) {
sb.append('\\');
}
sb.append(c);
Expand Down

0 comments on commit dbf4118

Please sign in to comment.