mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-03 22:48:48 +08:00
Merge pull request #1301 from adios-404/fix-cmake-shift
cmake: fix words shift before calling make or ninja completion
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -134,7 +134,7 @@ local -a cmake_build_options=(
|
||||
(( $+functions[_cmake_generator_options] )) ||
|
||||
_cmake_generator_options() {
|
||||
# pass only the part of the command line starting at "--" to the completion
|
||||
shift (( $2 - 1 )) words
|
||||
shift $(( $2 - 1 )) words
|
||||
(( CURRENT = $CURRENT + 1 - $2 ))
|
||||
if [ -f $1/Makefile ]
|
||||
then
|
||||
|
||||
Reference in new issue
Block a user