From fdc7f1c22e794839a56b4d3c38a9c72861c1ca40 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Thu, 15 May 2014 23:58:52 +0300 Subject: [PATCH] Don't lose prefix when completing mutt -f =foldername (Ubuntu: #1008380) --- completions/mutt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/mutt b/completions/mutt index 3dc82a9..1e04d0b 100644 --- a/completions/mutt +++ b/completions/mutt @@ -123,7 +123,7 @@ _muttfiledir() # (minus the leading '=' sign). compopt -o filenames COMPREPLY=( $( compgen -f -- "$folder/${cur:1}" ) ) - COMPREPLY=( ${COMPREPLY[@]#$folder/} ) + COMPREPLY=( ${COMPREPLY[@]/#$folder\//${cur:0:1}} ) return 0 elif [[ $cur == !* ]]; then spoolfile="$( $muttcmd -F "$muttrc" -Q spoolfile 2>/dev/null | \ -- 1.9.1