summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-02-18 14:53:37 +1100
committerMaxime Coste <mawww@kakoune.org>2018-02-18 14:53:37 +1100
commit84d70f8aebdbecf946258ed6649a02effcbc5396 (patch)
tree5248e582104117abfc0a76c2ac150214bad25f63 /src
parent5924694bda89fab3287fc827b71b3ce488848922 (diff)
normal mode: Fail if ':' is pressed with no CommandManager
Diffstat (limited to 'src')
-rw-r--r--src/normal.cc2
1 files changed, 1 insertions, 1 deletions
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();