Skip to content

Commit

Permalink
Autosuggestion history: escape also '+' char, fixes #584
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Oct 6, 2020
1 parent 9ec2688 commit 64af439
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3968,7 +3968,7 @@ private String matchPreviousCommand(String buffer) {
char prev = '0';
for (char c: buffer.toCharArray()) {
if (c == '(' || c == ')' || c == '[' || c == ']' || c == '{' || c == '}' || c == '^' || c == '*'
|| c == '$' || c == '.' || c == '?' || (c == '\\' && prev != '\\')) {
|| c == '$' || c == '.' || c == '?' || c == '+' || (c == '\\' && prev != '\\')) {
sb.append('\\');
}
sb.append(c);
Expand Down

0 comments on commit 64af439

Please sign in to comment.