From 6bbbd2543a035f3130dd73686f9f4357d900ad88 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 21 Nov 2012 13:44:43 +0100 Subject: [PATCH] move wrong_argument_count to commands.cc, where it is used --- src/command_manager.hh | 4 ---- src/commands.cc | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/command_manager.hh b/src/command_manager.hh index 454ff95e..415b3530 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -16,10 +16,6 @@ namespace Kakoune struct Context; -struct wrong_argument_count : runtime_error -{ - wrong_argument_count() : runtime_error("wrong argument count") {} -}; using CommandParameters = memoryview; diff --git a/src/commands.cc b/src/commands.cc index 5c1146fb..d862a61a 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -33,6 +33,11 @@ extern bool quit_requested; namespace { +struct wrong_argument_count : runtime_error +{ + wrong_argument_count() : runtime_error("wrong argument count") {} +}; + struct unknown_option : public runtime_error { unknown_option(const String& name)