From 84d70f8aebdbecf946258ed6649a02effcbc5396 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 18 Feb 2018 14:53:37 +1100 Subject: [PATCH] normal mode: Fail if ':' is pressed with no CommandManager --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normal.cc b/src/normal.cc index 8e65d9f5..1b83ec8b 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -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();