mirror of
https://github.com/vale981/bspwm
synced 2025-03-04 17:31:39 -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 '*:'
|
compset -P '*:'
|
||||||
bspc rule -l 2> /dev/null |
|
bspc rule -l 2> /dev/null |
|
||||||
while IFS=" " read target settings ;do
|
while IFS=" " read target settings ;do
|
||||||
by_index+="^$((index++)):${target} ${settings}"
|
by_index+="^$((++index)):${target} ${settings}"
|
||||||
if [ -n "$IPREFIX" ] ;then
|
if [ -n "$IPREFIX" ] ;then
|
||||||
completions+="${target#*:}"
|
completions+="${target#*:}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue