diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-11-17 13:43:20 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-11-17 13:43:20 +0100 |
commit | 21eadc9488dec5816f220aab16e6602b0bbe1440 (patch) | |
tree | 398d867c4cc35b5b6914a0329e9d7b8a20699a89 /src | |
parent | 6fda5a7e5fb577858b333c386eb93e778dc08a1c (diff) | |
download | weechat-21eadc9488dec5816f220aab16e6602b0bbe1440.zip |
core: display an error when the buffer is not found with command /command -buffer
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-command.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 40d05c94e..1c23062b0 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1633,7 +1633,12 @@ COMMAND_CALLBACK(command) { ptr_buffer = gui_buffer_search_by_full_name (argv[2]); if (!ptr_buffer) - ptr_buffer = buffer; + { + gui_chat_printf (NULL, + _("%sError: buffer not found"), + gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); + return WEECHAT_RC_OK; + } index_args = 3; } |