mirror of https://github.com/helix-editor/helix
feat: clear status message when receiving no message or error from performing file operation
parent
42d74bb9fa
commit
e7d7f93d63
|
@ -376,7 +376,7 @@ fn create_file_operation_prompt(
|
|||
match file_op(data.0.clone(), cursor, cx, &path, input) {
|
||||
Some(Ok(msg)) => cx.editor.set_status(msg),
|
||||
Some(Err(msg)) => cx.editor.set_error(msg),
|
||||
None => (),
|
||||
None => cx.editor.clear_status(),
|
||||
};
|
||||
} else {
|
||||
cx.editor
|
||||
|
|
Loading…
Reference in New Issue