diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-07-23 14:01:20 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-07-23 18:02:29 +0000 |
commit | 3afaebd913d08e778546fd208aff6a4df1b96337 (patch) | |
tree | 609f5730d9dd8c34a8d5d739215bd35e2a1e0a47 | |
parent | 0f4cfc25979de09f88615d76a26462279af506e6 (diff) | |
download | zsh-3afaebd913d08e778546fd208aff6a4df1b96337.tar.gz zsh-3afaebd913d08e778546fd208aff6a4df1b96337.tar.xz zsh-3afaebd913d08e778546fd208aff6a4df1b96337.zip |
unposted: _git-grep: Stop leaking the parameter $i.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_git | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 7aa5ae6e5..cb6ab4379 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 5954c55e5..b6da32962 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -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 )) |