]> projects.mako.cc - muttjump/commitdiff
make MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE more flexible
authorChristian Ebert <blacktrash@gmx.net>
Tue, 30 Nov 2010 16:13:33 +0000 (17:13 +0100)
committerJohannes Weißl <jargon@molb.org>
Tue, 30 Nov 2010 16:14:58 +0000 (17:14 +0100)
Signed-off-by: Johannes Weißl <jargon@molb.org>
muttjump

index cb7e4fbb3a726a1f163c73d7d9aa1ca8eb8513c5..f2b7ec7d6897329024b89562aab54e7f1f6e43c0 100755 (executable)
--- a/muttjump
+++ b/muttjump
@@ -40,7 +40,7 @@ MUTTJUMP_MULTI_SCREEN_MODE=${MUTTJUMP_MULTI_SCREEN_MODE:-no}
 MUTTJUMP_SCREEN_SESSION=${MUTTJUMP_SCREEN_SESSION:-}
 
 # function to create the screen window name from the full path of the mailbox
 MUTTJUMP_SCREEN_SESSION=${MUTTJUMP_SCREEN_SESSION:-}
 
 # function to create the screen window name from the full path of the mailbox
-if ! type MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE >/dev/null 2>&1 ; then
+if ! type $MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE >/dev/null 2>&1 ; then
     function MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE () {
         basename "$1"
     }
     function MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE () {
         basename "$1"
     }

Benjamin Mako Hill || Want to submit a patch?