diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-01-29 13:49:01 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-01-29 13:49:01 +0100 |
| commit | 38a67e72bcd8e142824f431e04f2d9ad100cffda (patch) | |
| tree | 464f7589601270a6e453e62cb07111a46c1262ba /src/commands.cc | |
| parent | 94bbf47cd45e48b0f0f46971a82c6bc85965ac81 (diff) | |
Do not pass a context to InputHandler methods
Diffstat (limited to 'src/commands.cc')
| -rw-r--r-- | src/commands.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.cc b/src/commands.cc index bd34db87..7805f67f 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -532,7 +532,7 @@ void exec_keys(const KeyList& keys, Context& context) InputHandler batch_input_handler(batch_ui); batch_input_handler.context().change_editor(context.editor()); - batch_input_handler.handle_available_inputs(batch_input_handler.context()); + batch_input_handler.handle_available_inputs(); context.change_editor(batch_input_handler.context().editor()); } @@ -618,7 +618,7 @@ void menu(const CommandParameters& params, Context& context) CommandManager::instance().execute(commands[choice], context); if (event == MenuEvent::Select and choice >= 0 and choice < select_cmds.size()) CommandManager::instance().execute(select_cmds[choice], context); - }, context); + }); } void info(const CommandParameters& params, Context& context) |
