mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 04:24:48 +03:00
Merge remote-tracking branch 'lenormf/fix-prompt-on-change'
This commit is contained in:
commit
5f315e68b6
@ -1908,7 +1908,17 @@ const CommandDesc prompt_cmd = {
|
||||
case PromptEvent::Change: cmd = on_change; break;
|
||||
case PromptEvent::Abort: cmd = on_abort; break;
|
||||
}
|
||||
CommandManager::instance().execute(cmd, context, sc);
|
||||
try
|
||||
{
|
||||
CommandManager::instance().execute(cmd, context, sc);
|
||||
}
|
||||
catch (Kakoune::runtime_error& error)
|
||||
{
|
||||
context.print_status({ fix_atom_text(error.what().str()),
|
||||
context.faces()["Error"] });
|
||||
context.hooks().run_hook(Hook::RuntimeError, error.what(),
|
||||
context);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user