summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2013-02-02 19:39:20 +0200
committerVille Skyttä <ville.skytta@iki.fi>2013-02-02 19:39:20 +0200
commitd66fc76be6058098d98e07e049db92079268dc0f (patch)
tree6ed0b8600b420c8b2c7dd2bb0b68c0f22cc985ae
parentf1100ef25a69a9910882c5692926cab22c173496 (diff)
downloadbash-completion-d66fc76be6058098d98e07e049db92079268dc0f.tar.gz
xrandr: Don't leak $i when completing --mode.
-rw-r--r--completions/xrandr1
1 files changed, 1 insertions, 0 deletions
diff --git a/completions/xrandr b/completions/xrandr
index 332be812..3b89f0c1 100644
--- a/completions/xrandr
+++ b/completions/xrandr
@@ -14,6 +14,7 @@ _xrandr()
return
;;
--mode)
+ local i
for(( i = 1; i < cword; i++ )); do
if [[ "${words[i]}" == --output ]]; then
output=${words[i+1]}