escape [ and ] while tab completing, too
This commit is contained in:
parent
b8b2929b02
commit
1d75ca6305
2
edit.c
2
edit.c
@ -1058,7 +1058,7 @@ x_escape(s, len, putbuf_func)
|
||||
int rval=0;
|
||||
|
||||
for (add = 0, wlen = len; wlen - add > 0; add++) {
|
||||
if (strchr("\\$(){}*&;#|<>\"'`", s[add]) || strchr(ifs, s[add])) {
|
||||
if (strchr("\\$(){}[]*&;#|<>\"'`", s[add]) || strchr(ifs, s[add])) {
|
||||
if (putbuf_func(s, add) != 0) {
|
||||
rval = -1;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user