Skip to content

Commit 58036ef

Browse files
bjorn3squell
andcommitted
Add newlines
Co-authored-by: Marc R. Schoolderman <[email protected]>
1 parent 848e0a9 commit 58036ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sudo/edit.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ pub(super) fn edit_files(editor: &Path, paths: &[&Path]) -> io::Result<ExitReaso
114114
}
115115
};
116116
assert!(status.did_exit());
117+
117118
if let Some(signal) = status.term_signal() {
118119
return Ok(ExitReason::Signal(signal));
119120
} else if let Some(code) = status.exit_status() {
@@ -228,6 +229,7 @@ fn handle_child_inner(editor: &Path, mut files: Vec<ChildFileInfo<'_>>) -> Resul
228229
)
229230
.status()
230231
.map_err(|e| format!("Failed to run editor {}: {e}", editor.display()))?;
232+
231233
if !status.success() {
232234
drop(tempdir);
233235

0 commit comments

Comments
 (0)