summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tterm.c b/tterm.c
index 015d17b..648fa5c 100644
--- a/tterm.c
+++ b/tterm.c
@@ -121,7 +121,8 @@ main(int argc, char *argv[])
XFlush(display);
} else if (strncmp(line, "cmd", 3) == 0) {
line += 3; line[len-4] = 0; /* chomp */
- snprintf(cmd, MAX_CMD, "%s (%s)", line, cwd);
+ if (strncmp(line, "fg", 2) != 0)
+ snprintf(cmd, MAX_CMD, "%s (%s)", line, cwd);
XStoreName(display, w, cmd);
XFlush(display);
} else {