diff options
| author | Nikolai Weibull <pcppopper@users.sourceforge.net> | 2011-05-17 17:15:13 +0000 |
|---|---|---|
| committer | Nikolai Weibull <pcppopper@users.sourceforge.net> | 2011-05-17 17:15:13 +0000 |
| commit | 62444c9bfc9d36a9cee00507fe2a0b906097b148 (patch) | |
| tree | 0d6b995f330f99264652e5f1ab1feb2234c2e05c /Completion/Unix/Command/_git | |
| parent | 29278: Completion/Unix/Type/_path_files: fix use of the $skips (diff) | |
| download | zsh-62444c9bfc9d36a9cee00507fe2a0b906097b148.tar zsh-62444c9bfc9d36a9cee00507fe2a0b906097b148.tar.gz zsh-62444c9bfc9d36a9cee00507fe2a0b906097b148.tar.bz2 zsh-62444c9bfc9d36a9cee00507fe2a0b906097b148.tar.lz zsh-62444c9bfc9d36a9cee00507fe2a0b906097b148.tar.xz zsh-62444c9bfc9d36a9cee00507fe2a0b906097b148.tar.zst zsh-62444c9bfc9d36a9cee00507fe2a0b906097b148.zip | |
29273: Completion/Unix/Command/_git: Fix __git_guard_number
Diffstat (limited to 'Completion/Unix/Command/_git')
| -rw-r--r-- | Completion/Unix/Command/_git | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index ccff03fed..4b1770fad 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5424,6 +5424,10 @@ __git_guard_diff-stat-width () { (( $+functions[__git_guard_number] )) || __git_guard_number () { + declare -A opts + + zparseopts -K -D -A opts M: J: V: 1 2 n F: X: + _guard "[[:digit:]]#" ${1:-number} } |
