1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +02:00

core: allow partial buffer name in command /buffer close (closes #1226)

This commit is contained in:
Sébastien Helleu
2018-07-27 07:48:02 +02:00
parent b7d6be5936
commit 7d7ca34a41
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -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)