diff options
| author | Nikolai Weibull <pcppopper@users.sourceforge.net> | 2011-07-21 09:15:41 +0000 |
|---|---|---|
| committer | Nikolai Weibull <pcppopper@users.sourceforge.net> | 2011-07-21 09:15:41 +0000 |
| commit | d37eda52f30cc50aa1908ca0a7abc99719a63d50 (patch) | |
| tree | 24607a621005e2feee6a61461e833ee434caf36b /Completion/Unix/Command/_git | |
| parent | unposted: Completion/Unix/Command/_git: Move _gitk and _tig to correct (diff) | |
| download | zsh-d37eda52f30cc50aa1908ca0a7abc99719a63d50.tar zsh-d37eda52f30cc50aa1908ca0a7abc99719a63d50.tar.gz zsh-d37eda52f30cc50aa1908ca0a7abc99719a63d50.tar.bz2 zsh-d37eda52f30cc50aa1908ca0a7abc99719a63d50.tar.lz zsh-d37eda52f30cc50aa1908ca0a7abc99719a63d50.tar.xz zsh-d37eda52f30cc50aa1908ca0a7abc99719a63d50.tar.zst zsh-d37eda52f30cc50aa1908ca0a7abc99719a63d50.zip | |
unposted: Completion/Unix/Command/_git: Fix bug in git-add completion that
prevented -f option from being used correctly.
Diffstat (limited to 'Completion/Unix/Command/_git')
| -rw-r--r-- | Completion/Unix/Command/_git | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index b4fcf07d5..b41cb4b19 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -63,7 +63,7 @@ _git-add () { (file) # TODO: Use __git_ignore_line_inside_arguments. declare -a ignored_files_alternatives - if [[ -n ${line[(I)-f|--force]} ]]; then + if [[ -n ${opt_args[(I)-f|--force]} ]]; then ignored_files_alternatives=( 'ignored-modified-files:ignored modified files:__git_modified_files --ignored' 'ignored-other-files:ignored other files:__git_other_files --ignored') |
