Skip to content

Commit

Permalink
Auto suggestion error when command contains '|' character(s), fixes #679
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jun 2, 2021
1 parent 9abe8b7 commit 9739190
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3947,7 +3947,8 @@ private String matchPreviousCommand(String buffer) {
StringBuilder sb = new StringBuilder();
for (char c: buffer.replace("\\", "\\\\").toCharArray()) {
if (c == '(' || c == ')' || c == '[' || c == ']' || c == '{' || c == '}' || c == '^' || c == '*'
|| c == '$' || c == '.' || c == '?' || c == '+') {
|| c == '$' || c == '.' || c == '?' || c == '+' || c == '|' || c == '<' || c == '>' || c == '!'
|| c == '-') {
sb.append('\\');
}
sb.append(c);
Expand Down

0 comments on commit 9739190

Please sign in to comment.