normal mode: Fail if ':' is pressed with no CommandManager

This commit is contained in:
Maxime Coste 2018-02-18 14:53:37 +11:00
parent 5924694bda
commit 84d70f8aeb

View File

@ -419,7 +419,7 @@ void for_each_codepoint(Context& context, NormalParams)
void command(Context& context, NormalParams params) void command(Context& context, NormalParams params)
{ {
if (not CommandManager::has_instance()) if (not CommandManager::has_instance())
return; throw runtime_error{"commands are not supported"};
CommandManager::instance().clear_last_complete_command(); CommandManager::instance().clear_last_complete_command();