1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-24 03:56:32 +03:00

add an eval command which send it's arguments to the command evaluator

This commit is contained in:
Maxime Coste 2012-05-03 07:24:27 +00:00
parent b8fe942dbb
commit 2a291e6868

View File

@ -917,6 +917,12 @@ void exec_string(const CommandParameters& params,
exec_keys(keys, context);
}
void eval_string(const CommandParameters& params,
const Context& context)
{
CommandManager::instance().execute(params, context);
}
void run_unit_tests();
int main(int argc, char* argv[])
@ -1000,6 +1006,7 @@ int main(int argc, char* argv[])
command_manager.register_command("runtime", exec_commands_in_runtime_file);
command_manager.register_command("exec", exec_string);
command_manager.register_command("eval", eval_string);
command_manager.register_command("def", define_command, CommandManager::IgnoreSemiColons | CommandManager::DeferredShellEval);
command_manager.register_command("echo", echo_message);