mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 00:31:07 +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>
|
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
|
* unposted: Completion/Debian/Type/_deb_packages: Minor
|
||||||
optimization.
|
optimization.
|
||||||
|
|
||||||
|
|
|
@ -973,7 +973,7 @@ _git-grep () {
|
||||||
# don't complete treeishs.
|
# don't complete treeishs.
|
||||||
case $state in
|
case $state in
|
||||||
(tree-or-file)
|
(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 ))
|
(( start = words[(I)(-f|-e)] > 0 ? 1 : 2 ))
|
||||||
(( end = $#line - 1 ))
|
(( end = $#line - 1 ))
|
||||||
|
|
Loading…
Reference in a new issue