diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-06 14:19:50 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-06 14:19:50 +0100 |
commit | 91f792416bd40c8e47d7f035e15f49732be368ce (patch) | |
tree | afe2bf31515af53d31e5807dd3d6eb5d125be15a /src/gui | |
parent | c3e2ed91a235305b7d82c50966cd9b7b2f1ca92d (diff) | |
download | weechat-91f792416bd40c8e47d7f035e15f49732be368ce.zip |
core: add option "add" in command /buffer (issue #1113)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-buffer.c | 6 | ||||
-rw-r--r-- | src/gui/gui-buffer.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 629db6087..a2db73974 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -42,6 +42,7 @@ #include "../core/wee-infolist.h" #include "../core/wee-list.h" #include "../core/wee-log.h" +#include "../core/wee-secure.h" #include "../core/wee-string.h" #include "../core/wee-utf8.h" #include "../plugins/plugin.h" @@ -73,6 +74,11 @@ int gui_buffers_visited_count = 0; /* number of visited buffers*/ int gui_buffers_visited_frozen = 0; /* 1 to forbid list updates */ struct t_gui_buffer *gui_buffer_last_displayed = NULL; /* last b. displayed */ +char *gui_buffer_reserved_names[] = +{ GUI_BUFFER_MAIN, SECURE_BUFFER_NAME, GUI_COLOR_BUFFER_NAME, + NULL +}; + char *gui_buffer_notify_string[GUI_BUFFER_NUM_NOTIFY] = { "none", "highlight", "message", "all" }; diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h index 7f7b2258d..99fd2ec90 100644 --- a/src/gui/gui-buffer.h +++ b/src/gui/gui-buffer.h @@ -235,6 +235,7 @@ extern int gui_buffers_visited_index; extern int gui_buffers_visited_count; extern int gui_buffers_visited_frozen; extern struct t_gui_buffer *gui_buffer_last_displayed; +extern char *gui_buffer_reserved_names[]; extern char *gui_buffer_notify_string[]; extern char *gui_buffer_properties_get_integer[]; extern char *gui_buffer_properties_get_string[]; |