normal mode: Fail if ':' is pressed with no CommandManager
This commit is contained in:
parent
5924694bda
commit
84d70f8aeb
|
@ -419,7 +419,7 @@ void for_each_codepoint(Context& context, NormalParams)
|
|||
void command(Context& context, NormalParams params)
|
||||
{
|
||||
if (not CommandManager::has_instance())
|
||||
return;
|
||||
throw runtime_error{"commands are not supported"};
|
||||
|
||||
CommandManager::instance().clear_last_complete_command();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user