]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Fix "fg" in window_preexec() for programs starting with fg.
authorSimon Ruderich <simon@ruderich.org>
Thu, 1 Mar 2012 21:11:31 +0000 (22:11 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 2 Mar 2012 13:21:31 +0000 (14:21 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 0cd67562b456e7bd8a0a1a23dd58fed5d36a2ac3..d10736edaacf5c6be9490e8ca3a364e0a8332946 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -370,7 +370,7 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then
         # Replace fg with the resumed job name.
         if [[ $program_name == fg ]]; then
             program_name=${jobtexts[%+]}
-        elif [[ $program_name == fg* ]]; then
+        elif [[ $program_name == fg* ]]; then
             program_name=${jobtexts[${program_name#fg }]}
         fi