mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
unposted: _git-grep: Stop leaking the parameter $i.
This commit is contained in:
parent
0f4cfc2597
commit
3afaebd913
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2016-07-23 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* unposted: Completion/Unix/Command/_git: _git-grep: Stop
|
||||
leaking the parameter $i.
|
||||
|
||||
* unposted: Completion/Debian/Type/_deb_packages: Minor
|
||||
optimization.
|
||||
|
||||
|
|
|
@ -973,7 +973,7 @@ _git-grep () {
|
|||
# don't complete treeishs.
|
||||
case $state in
|
||||
(tree-or-file)
|
||||
integer first_tree last_tree start end
|
||||
integer first_tree last_tree start end i
|
||||
|
||||
(( start = words[(I)(-f|-e)] > 0 ? 1 : 2 ))
|
||||
(( end = $#line - 1 ))
|
||||
|
|
Loading…
Reference in a new issue