From 62444c9bfc9d36a9cee00507fe2a0b906097b148 Mon Sep 17 00:00:00 2001 From: Nikolai Weibull Date: Tue, 17 May 2011 17:15:13 +0000 Subject: 29273: Completion/Unix/Command/_git: Fix __git_guard_number --- Completion/Unix/Command/_git | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Completion') 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} } -- cgit 1.4.1