Commit 5d272c9
committed
fix: zsh pass empty partial when no positional args exist
When _arguments -C resets $words to only positional args and there
are none yet (user pressed TAB after 'sentry issue list '), the
empty words array caused 'list' to be misinterpreted as the partial.
Now conditionally appends an empty string only when words is empty.1 parent d95bf36 commit 5d272c9
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
447 | 453 | | |
448 | 454 | | |
449 | 455 | | |
| |||
0 commit comments