From 211f5faa3895e4cc6fc2ea7d2ee739ae99468f5f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 1 Mar 2012 22:11:31 +0100 Subject: [PATCH] zsh/rc: Fix "fg" in window_preexec() for programs starting with fg. --- zsh/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/rc b/zsh/rc index 0cd6756..d10736e 100644 --- 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 -- 2.45.2