Add ` (backquote) to quoted characters for completion. From fgsch@openbsd.

Okayed by christos.
This commit is contained in:
wiz 2003-05-06 11:34:01 +00:00
parent 4296d7d483
commit c31c26034b

View File

@ -1,4 +1,4 @@
/* $NetBSD: edit.c,v 1.8 2002/09/25 02:41:11 provos Exp $ */
/* $NetBSD: edit.c,v 1.9 2003/05/06 11:34:01 wiz Exp $ */
/*
* Command line editing - common code
@ -1107,7 +1107,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;