Skip to content

Commit 26bf50e

Browse files
committed
refactor(rcs): declare "local i" closer
1 parent c298dcf commit 26bf50e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

completions/rcs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _comp_cmd_rcs()
55
local cur prev words cword comp_args
66
_comp_initialize -- "$@" || return
77

8-
local file dir i
8+
local file dir
99

1010
file=${cur##*/}
1111
dir=${cur%/*}
@@ -23,6 +23,7 @@ _comp_cmd_rcs()
2323

2424
_comp_compgen -aR -- -G "$dir/$file*,v"
2525

26+
local i
2627
for i in ${!COMPREPLY[*]}; do
2728
COMPREPLY[i]=${COMPREPLY[i]%,v}
2829
done

0 commit comments

Comments
 (0)