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 | |
parent | b7d6be593634c51d62c8041e32d888484b580ff6 (diff) | |
download | weechat-7d7ca34a41d1f031a8e1e189f33e202bf6183803.zip |
core: allow partial buffer name in command /buffer close (closes #1226)
-rw-r--r-- | ChangeLog.adoc | 4 | ||||
-rw-r--r-- | src/core/wee-command.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index c04b6a78a..76b4c17cc 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -18,6 +18,10 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] [[v2.3]] == Version 2.3 (under dev) +New features:: + + * core: allow partial buffer name in command /buffer close (issue #1226) + Bug fixes:: * core: send signal "key_pressed" for mouse code only if the string is UTF-8 valid (issue #1220) 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) |