Fixed system messages printing an extra line for no reason

This commit is contained in:
2026-02-25 02:10:57 -05:00
parent 45a1c7c75d
commit 415c9b4a53
2 changed files with 1 additions and 1 deletions

View File

@@ -164,6 +164,7 @@ impl ShedVi {
history: History::new()?,
needs_redraw: true,
};
new.writer.flush_write("\n")?; // ensure we start on a new line, in case the previous command didn't end with a newline
new.print_line(false)?;
Ok(new)
}

View File

@@ -280,7 +280,6 @@ pub fn child_exited(pid: Pid, status: WtStat) -> ShResult<()> {
if is_fg {
take_term()?;
} else {
println!();
let job_order = read_jobs(|j| j.order().to_vec());
let result = read_jobs(|j| j.query(JobID::Pgid(pgid)).cloned());
if let Some(job) = result {