escape [ and ] while tab completing, too

This commit is contained in:
tg 2003-06-23 17:33:11 +00:00
parent b8b2929b02
commit 1d75ca6305

2
edit.c
View File

@ -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;