1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

Add property "input" for function buffer_get_string in plugin API

This commit is contained in:
Sebastien Helleu
2009-02-08 19:49:35 +01:00
parent c683673047
commit 2fce36c2ad
+2
View File
@@ -560,6 +560,8 @@ gui_buffer_get_string (struct t_gui_buffer *buffer, const char *property)
return buffer->short_name;
else if (string_strcasecmp (property, "title") == 0)
return buffer->title;
else if (string_strcasecmp (property, "input") == 0)
return buffer->input_buffer;
else if (string_strncasecmp (property, "localvar_", 9) == 0)
{
ptr_local_var = gui_buffer_local_var_search (buffer, property + 9);