don't set the status as void when the return value is void

pull/8675/merge^2
Matt Paras 2025-06-21 13:36:56 -07:00
parent 45480fc6be
commit ef244de365
1 changed files with 4 additions and 1 deletions

View File

@ -1992,7 +1992,10 @@ impl super::PluginSystem for SteelScriptingEngine {
})
}) {
Ok(res) => {
cx.editor.set_status(res.to_string());
if !matches!(&res, SteelVal::Void) {
cx.editor.set_status(res.to_string());
}
Ok(res)
}
Err(e) => Err(e),