escape [ and ] while tab completing, too
This commit is contained in:
		
							
								
								
									
										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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user