aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-02 21:51:54 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-02 21:51:54 +1300
commitf7e84eaccac42f57e6781f235edbe639a2f2b70e (patch)
tree462b49ae2d72a76273c77fbac0335c4880fd5cfb /bash
parent0516a03d3e635c7a7066f1ce9649d95210c4a8ec (diff)
downloaddotfiles-f7e84eaccac42f57e6781f235edbe639a2f2b70e.tar.gz
dotfiles-f7e84eaccac42f57e6781f235edbe639a2f2b70e.zip
Make `sec` a local var in man page completion
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/man.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/bash_completion.d/man.bash b/bash/bash_completion.d/man.bash
index 274f663a..31be9a95 100644
--- a/bash/bash_completion.d/man.bash
+++ b/bash/bash_completion.d/man.bash
@@ -8,6 +8,7 @@ _man() {
# If previous word started with a number, we'll assume that's a section to
# search
+ local sec
case $3 in
[0-9]*) sec=$3 ;;
esac