mirror of
https://github.com/vale981/bspwm
synced 2025-03-04 09:21:42 -05:00
Fix bspc rule -r <^n>
completion for zsh
Indexes were offsetted by one and started from 0. 0 is not a valid index. Fixes #1193.
This commit is contained in:
parent
8e6f769d6f
commit
2571bddf67
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ _bspc() {
|
|||
compset -P '*:'
|
||||
bspc rule -l 2> /dev/null |
|
||||
while IFS=" " read target settings ;do
|
||||
by_index+="^$((index++)):${target} ${settings}"
|
||||
by_index+="^$((++index)):${target} ${settings}"
|
||||
if [ -n "$IPREFIX" ] ;then
|
||||
completions+="${target#*:}"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue