diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2015-07-22 12:52:24 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-07-22 12:52:24 -0700 |
commit | a1f8d4ffc73293e0461c01ff005194a474854376 (patch) | |
tree | 6d625d2e0e5321c4fd8d160cbadac2354c243f86 /Src/Zle | |
parent | 045bd4e3a6eb1d2a8a7b0a16a1b00f477c0112ed (diff) | |
download | zsh-a1f8d4ffc73293e0461c01ff005194a474854376.tar.gz zsh-a1f8d4ffc73293e0461c01ff005194a474854376.tar.xz zsh-a1f8d4ffc73293e0461c01ff005194a474854376.zip |
35826: add getsparam_u() to return unmetafied string, use it for a number of references to non-special params
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 4 | ||||
-rw-r--r-- | Src/Zle/zle_misc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index f37a43231..fd90ccb31 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -507,8 +507,8 @@ getcols() max_caplen = lr_caplen = 0; mcolors.flags = 0; queue_signals(); - if (!(s = getsparam("ZLS_COLORS")) && - !(s = getsparam("ZLS_COLOURS"))) { + if (!(s = getsparam_u("ZLS_COLORS")) && + !(s = getsparam_u("ZLS_COLOURS"))) { for (i = 0; i < NUM_COLS; i++) mcolors.files[i] = filecol(""); mcolors.pats = NULL; diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c index d350688a7..556ce5ba6 100644 --- a/Src/Zle/zle_misc.c +++ b/Src/Zle/zle_misc.c @@ -1552,13 +1552,13 @@ makesuffix(int n) { char *suffixchars; - if (!(suffixchars = getsparam("ZLE_REMOVE_SUFFIX_CHARS"))) + if (!(suffixchars = getsparam_u("ZLE_REMOVE_SUFFIX_CHARS"))) suffixchars = " \t\n;&|"; addsuffixstring(SUFTYP_POSSTR, 0, suffixchars, n); /* Do this second so it takes precedence */ - if ((suffixchars = getsparam("ZLE_SPACE_SUFFIX_CHARS")) && *suffixchars) + if ((suffixchars = getsparam_u("ZLE_SPACE_SUFFIX_CHARS")) && *suffixchars) addsuffixstring(SUFTYP_POSSTR, SUFFLAGS_SPACE, suffixchars, n); suffixlen = n; |