Implement = (equalize/auto-indent) verb, fix dedent indexing, remove unimplemented screen-line motions, and clean up unreachable match arms
This commit is contained in:
12
src/jobs.rs
12
src/jobs.rs
@@ -873,12 +873,12 @@ pub fn wait_fg(job: Job, interactive: bool) -> ShResult<()> {
|
||||
write_jobs(|j| j.fg_to_bg(*status))?;
|
||||
}
|
||||
WtStat::Signaled(_, sig, _) => {
|
||||
if *sig == Signal::SIGINT {
|
||||
// interrupt propagates to the shell
|
||||
// necessary for interrupting stuff like
|
||||
// while/for loops
|
||||
kill(getpid(), Signal::SIGINT)?;
|
||||
} else if *sig == Signal::SIGTSTP {
|
||||
if *sig == Signal::SIGINT {
|
||||
// interrupt propagates to the shell
|
||||
// necessary for interrupting stuff like
|
||||
// while/for loops
|
||||
kill(getpid(), Signal::SIGINT)?;
|
||||
} else if *sig == Signal::SIGTSTP {
|
||||
was_stopped = true;
|
||||
write_jobs(|j| j.fg_to_bg(*status))?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user