Avoid rendering the tree twice in a row

The callee already renders the tree if necessary, so despite the documentation
of the function, doing it again on the caller side is unnecessary.
This commit is contained in:
Ingo Bürk
2015-12-15 07:21:11 -05:00
parent 954927ccc4
commit 905bca3531
3 changed files with 2 additions and 14 deletions

View File

@ -643,8 +643,8 @@ void binding_free(Binding *bind) {
/*
* Runs the given binding and handles parse errors. If con is passed, it will
* execute the command binding with that container selected by criteria.
* Returns a CommandResult for running the binding's command. Caller should
* render tree if needs_tree_render is true. Free with command_result_free().
* Returns a CommandResult for running the binding's command. Free with
* command_result_free().
*
*/
CommandResult *run_binding(Binding *bind, Con *con) {