Fix leaking $muttcmd from mutt completion
This commit is contained in:
parent
31f03cfb82
commit
0e1e189f0b
@ -39,7 +39,7 @@ _muttconffiles()
|
|||||||
|
|
||||||
_muttaliases()
|
_muttaliases()
|
||||||
{
|
{
|
||||||
local cur muttrc
|
local cur muttrc muttcmd=${COMP_WORDS[0]}
|
||||||
local -a conffiles aliases
|
local -a conffiles aliases
|
||||||
cur=`_get_cword =`
|
cur=`_get_cword =`
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ _muttaliases()
|
|||||||
|
|
||||||
_muttquery()
|
_muttquery()
|
||||||
{
|
{
|
||||||
local cur querycmd
|
local cur querycmd muttcmd=${COMP_WORDS[0]}
|
||||||
local -a queryresults
|
local -a queryresults
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ _muttquery()
|
|||||||
|
|
||||||
_muttfiledir()
|
_muttfiledir()
|
||||||
{
|
{
|
||||||
local cur folder spoolfile
|
local cur folder spoolfile muttcmd=${COMP_WORDS[0]}
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
|
|
||||||
# This is currently not working so well. Perhaps this function should
|
# This is currently not working so well. Perhaps this function should
|
||||||
@ -108,8 +108,6 @@ _mutt()
|
|||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
|
|
||||||
[ ${COMP_WORDS[0]} == muttng ] && muttcmd="muttng" || muttcmd="mutt"
|
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n \
|
COMPREPLY=( $( compgen -W '-A -a -b -c -e -f -F -H -i -m -n \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user