[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 8eaf5a1c2a922240445f57ba7e525217aa661a3e
Freddy Vulto
fvulto at gmail.com
Sun Sep 13 19:30:18 UTC 2009
The following commit has been merged in the master branch:
commit 0e1e189f0b3741638e95ae19a63016e8049eb6a2
Author: Freddy Vulto <fvulto at gmail.com>
Date: Sat Sep 12 21:54:17 2009 +0200
Fix leaking $muttcmd from mutt completion
diff --git a/contrib/mutt b/contrib/mutt
index ff7655f..2145f5d 100644
--- a/contrib/mutt
+++ b/contrib/mutt
@@ -39,7 +39,7 @@ _muttconffiles()
_muttaliases()
{
- local cur muttrc
+ local cur muttrc muttcmd=${COMP_WORDS[0]}
local -a conffiles aliases
cur=`_get_cword =`
@@ -57,7 +57,7 @@ _muttaliases()
_muttquery()
{
- local cur querycmd
+ local cur querycmd muttcmd=${COMP_WORDS[0]}
local -a queryresults
cur=`_get_cword`
@@ -77,7 +77,7 @@ _muttquery()
_muttfiledir()
{
- local cur folder spoolfile
+ local cur folder spoolfile muttcmd=${COMP_WORDS[0]}
cur=`_get_cword`
# This is currently not working so well. Perhaps this function should
@@ -108,8 +108,6 @@ _mutt()
COMPREPLY=()
- [ ${COMP_WORDS[0]} == muttng ] && muttcmd="muttng" || muttcmd="mutt"
-
case "$cur" in
-*)
COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n \
--
bash-completion
More information about the Bash-completion-commits
mailing list