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.
This commit is contained in:
Wez Furlong committed 2021-08-03 09:24:35 -07:00
1 parent 07bea8c269
commit 2590e490cd
1 file changed
+3 -3
+3 -3
View File
@@ -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
));
}