diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-26 15:31:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-26 15:31:59 +0200 |
commit | f37ecbfefd63d1966a877b3999ab472147282e77 (patch) | |
tree | 215ef6b052d72c370b2cb861fff82615c89e7f40 | |
parent | 7d47652c99609d254ca79da84354297a6e3cdbb6 (diff) | |
parent | 24fd69e42ccae4da9fdfa056774b370caf22cc2d (diff) | |
download | weechat-f37ecbfefd63d1966a877b3999ab472147282e77.zip |
Merge pull request #938 from arza-zara/buffer_get_localvar
core: support local variables in /buffer get
-rw-r--r-- | src/core/wee-command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index a3a6bb472..602cca093 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1112,7 +1112,8 @@ COMMAND_CALLBACK(buffer) gui_buffer_get_integer (buffer, argv[2])); } if (gui_buffer_property_in_list (gui_buffer_properties_get_string, - argv[2])) + argv[2]) + || (string_strncasecmp (argv[2], "localvar_", 9) == 0)) { gui_chat_printf (NULL, "%s%s%s: (str) %s = %s", GUI_COLOR(GUI_COLOR_CHAT_BUFFER), |