1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

Fix problem with read marker when manually switching to other buffer with some commands like /query

This commit is contained in:
Sebastien Helleu
2009-01-30 12:46:44 +01:00
parent 228ef56860
commit 5650f035dd
13 changed files with 32 additions and 18 deletions
+6 -1
View File
@@ -818,7 +818,12 @@ gui_buffer_set (struct t_gui_buffer *buffer, const char *property,
}
else if (string_strcasecmp (property, "display") == 0)
{
gui_window_switch_to_buffer (gui_current_window, buffer, 0);
/* if it is auto-switch to a buffer, then we don't set read marker,
otherwise we reset it (if current buffer is not displayed) after
switch */
gui_window_switch_to_buffer (gui_current_window, buffer,
(string_strcasecmp (value, "auto") == 0) ?
0 : 1);
}
else if (string_strcasecmp (property, "name") == 0)
{