diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-22 08:14:29 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-22 08:14:29 +0100 |
commit | 1ef3237b6b2f7ed07faccc0c1ab897f37827421d (patch) | |
tree | b236f04b6efcd49667a389362030fb4dd4b0cb24 /src/gui | |
parent | e253a2509ae648a358991103fafbd18d21bb06cd (diff) | |
download | weechat-1ef3237b6b2f7ed07faccc0c1ab897f37827421d.zip |
api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-input.c | 2 | ||||
-rw-r--r-- | src/gui/gui-key.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index e7824dcd8..ef6acfed5 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -437,7 +437,7 @@ gui_input_return (struct t_gui_buffer *buffer) gui_input_text_changed_modifier_and_signal (window->buffer, 0, /* save undo */ 1); /* stop completion */ - input_data (window->buffer, command); + (void) input_data (window->buffer, command); free (command); } } diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c index 4cbaaea52..24f914da7 100644 --- a/src/gui/gui-key.c +++ b/src/gui/gui-key.c @@ -1148,7 +1148,7 @@ gui_key_focus_command (const char *key, int context, command, ptr_buffer->full_name); } - input_data (ptr_buffer, command); + (void) input_data (ptr_buffer, command); } free (command); } @@ -1377,7 +1377,8 @@ gui_key_pressed (const char *key_str) { for (i = 0; commands[i]; i++) { - input_data (gui_current_window->buffer, commands[i]); + (void) input_data (gui_current_window->buffer, + commands[i]); } string_free_split (commands); } |