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:
Shohei YOSHIDA authored and GitHub committed 2026-11-30 13:13:45 +09:00
commit 80894dac23
1 file changed
+1 -1
+1 -1
View File
@@ -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