Skip to content

Commit eca830d

Browse files
committed
fix again
1 parent ca8d65b commit eca830d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zsh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _${name}() {
4848
4949
# Prepare the command to obtain completions, ensuring arguments are quoted for eval
5050
local -a args_to_quote=("\${(@)words[2,-1]}")
51-
if [ "\${lastChar}" = "" ]; then
51+
if [ "\${lastChar}" = "" ] && [ "\${args_to_quote[-1]}" != "" ]; then
5252
# If the last parameter is complete (there is a space following it)
5353
# We add an extra empty parameter so we can indicate this to the go completion code.
5454
__${name}_debug "Adding extra empty parameter"

0 commit comments

Comments
 (0)