diff options
author | Oliver Kiddle <opk@zsh.org> | 2021-11-12 20:33:52 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-11-12 20:33:52 +0100 |
commit | dfb7ac94bb4c28472d759a61ea3c2dab30cf9cd3 (patch) | |
tree | 1894d81725e4825c1b1948c0ccf1236b439e3710 /Completion/Base | |
parent | 631576de0f7b4e52487175e3e017e5136424b626 (diff) | |
download | zsh-dfb7ac94bb4c28472d759a61ea3c2dab30cf9cd3.tar.gz zsh-dfb7ac94bb4c28472d759a61ea3c2dab30cf9cd3.tar.xz zsh-dfb7ac94bb4c28472d759a61ea3c2dab30cf9cd3.zip |
49561: add zformat -F option, similar to -f but ternary expressions check for existence instead of doing math evaluation
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/Core/_description | 2 | ||||
-rw-r--r-- | Completion/Base/Core/_message | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Base/Core/_description b/Completion/Base/Core/_description index bdb4007a6..5b54484c7 100644 --- a/Completion/Base/Core/_description +++ b/Completion/Base/Core/_description @@ -78,7 +78,7 @@ shift 2 if [[ -z "$1" && $# -eq 1 ]]; then format= elif [[ -n "$format" ]]; then - zformat -f format "$format" "d:$1" "${(@)argv[2,-1]}" + zformat -F format "$format" "d:$1" "${(@)argv[2,-1]}" fi if [[ -n "$gname" ]]; then diff --git a/Completion/Base/Core/_message b/Completion/Base/Core/_message index 4d5645eaf..dbeed4a88 100644 --- a/Completion/Base/Core/_message +++ b/Completion/Base/Core/_message @@ -39,7 +39,7 @@ else fi if [[ -n "$format$raw" ]]; then - [[ -z "$raw" ]] && zformat -f format "$format" "d:$1" "${(@)argv[2,-1]}" + [[ -z "$raw" ]] && zformat -F format "$format" "d:$1" "${(@)argv[2,-1]}" builtin compadd "$gopt[@]" -x "$format" _comp_mesg=yes fi |