From 91f792416bd40c8e47d7f035e15f49732be368ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 6 Jan 2018 14:19:50 +0100 Subject: core: add option "add" in command /buffer (issue #1113) --- src/gui/gui-buffer.c | 6 ++++++ src/gui/gui-buffer.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src/gui') 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[]; -- cgit v1.2.3