From 2590e490cdeaf094973a9a736645f0bc941bc395 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 3 Aug 2021 09:24:35 -0700 Subject: [PATCH] add newline after process completed line There are some cases where we can print that status before we've fully drained the output; it's slightly nicer to ensure that we have an "atomic" line of its own for that, to minimize the crappiness of the resulting output. --- mux/src/localpane.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mux/src/localpane.rs b/mux/src/localpane.rs index 3021011c8..6f3010b62 100644 --- a/mux/src/localpane.rs +++ b/mux/src/localpane.rs @@ -142,7 +142,7 @@ impl Pane for LocalPane { (ExitBehavior::Close, _, _) => *proc = ProcessState::Dead, (ExitBehavior::CloseOnCleanExit, false, false) => { notify = Some(format!( - "\r\n[Process didn't exit cleanly. ({}=\"CloseOnCleanExit\")]", + "\r\n[Process didn't exit cleanly. ({}=\"CloseOnCleanExit\")]\r\n", EXIT_BEHAVIOR )); *proc = ProcessState::DeadPendingClose { killed: false } @@ -151,12 +151,12 @@ impl Pane for LocalPane { (ExitBehavior::Hold, success, false) => { if success { notify = Some(format!( - "\r\n[Process completed. ({}=\"Hold\")]", + "\r\n[Process completed. ({}=\"Hold\")]\r\n", EXIT_BEHAVIOR )); } else { notify = Some(format!( - "\r\n[Process didn't exit cleanly. ({}=\"Hold\")]", + "\r\n[Process didn't exit cleanly. ({}=\"Hold\")]\r\n", EXIT_BEHAVIOR )); }