feat: clear status message when receiving no message or error from performing file operation

pull/12902/head
Nikita Revenco 2025-03-04 12:19:23 +00:00
parent 42d74bb9fa
commit e7d7f93d63
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ fn create_file_operation_prompt(
match file_op(data.0.clone(), cursor, cx, &path, input) { match file_op(data.0.clone(), cursor, cx, &path, input) {
Some(Ok(msg)) => cx.editor.set_status(msg), Some(Ok(msg)) => cx.editor.set_status(msg),
Some(Err(msg)) => cx.editor.set_error(msg), Some(Err(msg)) => cx.editor.set_error(msg),
None => (), None => cx.editor.clear_status(),
}; };
} else { } else {
cx.editor cx.editor