about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2021-04-12 13:59:06 -0700
committerBart Schaefer <schaefer@ipost.com>2021-04-12 13:59:06 -0700
commitb3613e4895f7b059558c4ef211189b516dbf903d (patch)
tree5ac6989a564cfb079b73a1f13a3d2a89ff881bb9 /Src
parente67ccd7f1efae7696dc17f6e3e720cd994e90155 (diff)
downloadzsh-b3613e4895f7b059558c4ef211189b516dbf903d.tar.gz
zsh-b3613e4895f7b059558c4ef211189b516dbf903d.tar.xz
zsh-b3613e4895f7b059558c4ef211189b516dbf903d.zip
Change TYPESET_DOES_NOT_SET to TYPESET_TO_UNSET to avoid double-negative
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
-rw-r--r--Src/options.c2
-rw-r--r--Src/zsh.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index edd4cad44..6d119f7a5 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2491,7 +2491,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func),
 		return NULL;
 	    }
 	}
-	if (isset(TYPESETDOESNOTSET))
+	if (isset(TYPESETTOUNSET))
 	    pm->node.flags |= PM_DEFAULTED;
     } else {
 	if (idigit(*pname))
diff --git a/Src/options.c b/Src/options.c
index 766ffdfdb..23935ae18 100644
--- a/Src/options.c
+++ b/Src/options.c
@@ -257,8 +257,8 @@ static struct optname optns[] = {
 {{NULL, "sunkeyboardhack",    0},			 SUNKEYBOARDHACK},
 {{NULL, "transientrprompt",   0},			 TRANSIENTRPROMPT},
 {{NULL, "trapsasync",	      0},			 TRAPSASYNC},
-{{NULL, "typesetdoesnotset",  OPT_EMULATE|OPT_BOURNE},	 TYPESETDOESNOTSET},
 {{NULL, "typesetsilent",      OPT_EMULATE|OPT_BOURNE},	 TYPESETSILENT},
+{{NULL, "typesettounset",     OPT_EMULATE|OPT_BOURNE},	 TYPESETTOUNSET},
 {{NULL, "unset",	      OPT_EMULATE|OPT_BSHELL},	 UNSET},
 {{NULL, "verbose",	      0},			 VERBOSE},
 {{NULL, "vi",		      0},			 VIMODE},
diff --git a/Src/zsh.h b/Src/zsh.h
index 12efb784f..490407ad0 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -2536,8 +2536,8 @@ enum {
     SUNKEYBOARDHACK,
     TRANSIENTRPROMPT,
     TRAPSASYNC,
-    TYPESETDOESNOTSET,
     TYPESETSILENT,
+    TYPESETTOUNSET,
     UNSET,
     VERBOSE,
     VIMODE,