diff options
Diffstat (limited to 'Src/jobs.c')
-rw-r--r-- | Src/jobs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/jobs.c b/Src/jobs.c index d1b98ac4d..32f7daab9 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -2288,8 +2288,10 @@ bin_fg(char *name, char **argv, Options ops, int func) case BIN_FG: case BIN_BG: case BIN_WAIT: - if (func == BIN_BG) + if (func == BIN_BG) { jobtab[job].stat |= STAT_NOSTTY; + jobtab[job].stat &= ~STAT_CURSH; + } if ((stopped = (jobtab[job].stat & STAT_STOPPED))) { makerunning(jobtab + job); if (func == BIN_BG) { |