about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-01-27 18:20:10 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-01-27 18:20:10 +0000
commit3d8109090b3b09eed6f79e66822cafac6eed0da9 (patch)
tree8836553c5b01c7a72ace1aa8c3deb513607d812e /Src
parentf40c3dc74a31eb5cbf73a5c4878f28c08d843efa (diff)
downloadzsh-3d8109090b3b09eed6f79e66822cafac6eed0da9.tar.gz
zsh-3d8109090b3b09eed6f79e66822cafac6eed0da9.tar.xz
zsh-3d8109090b3b09eed6f79e66822cafac6eed0da9.zip
16158: interpret TAB as "yes" only in spckword()
16201: introduce the PM_NAMEDDIR flag
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 5978b4ddb..03fd4c4b4 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -571,6 +571,7 @@ getnameddir(char *name)
     if ((pm = (Param) paramtab->getnode(paramtab, name)) &&
 	    (PM_TYPE(pm->flags) == PM_SCALAR) &&
 	    (str = getsparam(name)) && *str == '/') {
+	pm->flags |= PM_NAMEDDIR;
 	adduserdir(name, str, 0, 1);
 	return str;
     }
@@ -1477,7 +1478,7 @@ getquery(char *valid_chars, int purge)
     }
 
     while ((c = read1char()) >= 0) {
-	if (c == 'Y' || c == '\t')
+	if (c == 'Y')
 	    c = 'y';
 	else if (c == 'N')
 	    c = 'n';
@@ -1641,11 +1642,11 @@ spckword(char **s, int hist, int cmd, int ask)
 		free(pptbuf);
 		fflush(shout);
 		zbeep();
-		x = getquery("nyae ", 0);
+		x = getquery("nyae \t", 0);
 	    }
 	} else
 	    x = 'y';
-	if (x == 'y' || x == ' ') {
+	if (x == 'y' || x == ' ' || x == '\t') {
 	    *s = dupstring(best);
 	    if (hist)
 		hwrep(best);