diff options
| author | salmonik <raisersoft@proton.me> | 2026-06-12 13:02:41 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-06-12 13:02:41 +0200 |
| commit | 945e3b1a2d95b553b303c3cee92857234bdde6bd (patch) | |
| tree | d4ebd1ac3c420e74c8011454d799f663127535d8 | |
| parent | improved ZSH autocompletion script (diff) | |
| download | rsplayer-945e3b1a2d95b553b303c3cee92857234bdde6bd.tar.gz rsplayer-945e3b1a2d95b553b303c3cee92857234bdde6bd.zip | |
fix autocompletion script
| -rw-r--r-- | completions/_rsp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/completions/_rsp b/completions/_rsp index 89d122b..197b5b1 100644 --- a/completions/_rsp +++ b/completions/_rsp | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | functions[_rsp_clap]=$functions[_rsp] | 2 | functions[_rsp_clap]=$functions[_rsp] |
| 3 | 3 | ||
| 4 | _rsp() { | 4 | _rsp() { |
| 5 | setopt nobanghist | ||
| 6 | case $words[2] in | 5 | case $words[2] in |
| 7 | play|queue) | 6 | play|queue) |
| 8 | if (( CURRENT > 2 )); then | 7 | if (( CURRENT > 2 )); then |
| @@ -22,7 +21,6 @@ _rsp() { | |||
| 22 | } | 21 | } |
| 23 | 22 | ||
| 24 | _rsp_complete_args() { | 23 | _rsp_complete_args() { |
| 25 | setopt nobanghist | ||
| 26 | local -a args=("${(@)words[3,$CURRENT]}") | 24 | local -a args=("${(@)words[3,$CURRENT]}") |
| 27 | local cur="${(j: :)args}" | 25 | local cur="${(j: :)args}" |
| 28 | # No completion if this is a flag (handled above) | 26 | # No completion if this is a flag (handled above) |
