diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-07-27 07:48:02 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-07-27 07:48:02 +0200 |
commit | 7d7ca34a41d1f031a8e1e189f33e202bf6183803 (patch) | |
tree | eed56466b3cf1624f3516f7ab7a7bb0b12d95ec3 /src/core | |
parent | b7d6be593634c51d62c8041e32d888484b580ff6 (diff) | |
download | weechat-7d7ca34a41d1f031a8e1e189f33e202bf6183803.zip |
core: allow partial buffer name in command /buffer close (closes #1226)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-command.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 91c3c068d..c76f4be92 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1063,6 +1063,11 @@ COMMAND_CALLBACK(buffer) else { ptr_buffer = gui_buffer_search_by_full_name (argv_eol[2]); + if (!ptr_buffer) + { + ptr_buffer = gui_buffer_search_by_partial_name ( + NULL, argv_eol[2]); + } if (ptr_buffer) { if (ptr_buffer == weechat_buffer) |