aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2026-03-19 19:04:12 +0900
committerShohei YOSHIDA <syohex@gmail.com>2026-03-19 19:04:12 +0900
commit87378081eee69e80626d6df9214f898d89c82abc (patch)
tree3db8d95cf3f69298d2798d82b363240896c3c0e1
parentfix formatting issue (diff)
downloadzsh-completions-fix_cmake_help_completion.tar
zsh-completions-fix_cmake_help_completion.tar.gz
zsh-completions-fix_cmake_help_completion.tar.bz2
zsh-completions-fix_cmake_help_completion.tar.lz
zsh-completions-fix_cmake_help_completion.tar.xz
zsh-completions-fix_cmake_help_completion.tar.zst
zsh-completions-fix_cmake_help_completion.zip
Remove needless variable declarationsfix_cmake_help_completion
-rw-r--r--src/_cmake8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/_cmake b/src/_cmake
index b01682e..68ec9c1 100644
--- a/src/_cmake
+++ b/src/_cmake
@@ -51,8 +51,6 @@
#
# -------------------------------------------------------------------------
-local context state line curcontext="$curcontext" cmake_args
-
local -a cmake_build_options=(
'-S[Explicitly specify a source directory]:source directory:_path_files -/'
'-B[Explicitly specify a build directory]:build directory:_path_files -/'
@@ -235,7 +233,7 @@ _cmake_on_build() {
if [[ "$in_build" == false || "$difference" -eq 1 ]] ; then
# either there is no --build or completing the directory after --build
- _arguments -C -s \
+ _arguments -s \
- build_opts \
"$cmake_build_options[@]" \
- build_cmds \
@@ -303,7 +301,7 @@ _cmake_on_install() {
if [[ "$in_build" == false || "$difference" -eq 1 ]] ; then
# either there is no --install or completing the directory after --install
- _arguments -C -s \
+ _arguments -s \
- build_opts \
"$cmake_build_options[@]" \
- build_cmds \
@@ -611,7 +609,7 @@ local -a cmake_suggest_install=(
if [[ "$service" = -value-*CMAKE_GENERATOR* ]]; then
_cmake_generators
elif [ $CURRENT -eq 2 ] ; then
- _arguments -C -s \
+ _arguments -s \
- help \
"$cmake_help_actions[@]" \
- command \