mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 10:13:12 +02:00
Add space before day changed message, fix refresh when setting unread marker for buffer(s)
This commit is contained in:
@@ -630,6 +630,15 @@ gui_chat_display_time_and_prefix (struct t_gui_window *window,
|
||||
NULL, 1, num_lines, count, lines_displayed,
|
||||
simulate);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!simulate)
|
||||
gui_window_reset_style (GUI_CURSES(window)->win_chat, GUI_COLOR_CHAT);
|
||||
|
||||
gui_chat_display_word (window, line, str_space,
|
||||
NULL, 1, num_lines, count, lines_displayed,
|
||||
simulate);
|
||||
}
|
||||
|
||||
/* display prefix */
|
||||
if (line->prefix
|
||||
|
||||
@@ -577,8 +577,18 @@ gui_buffer_set_highlight_tags (struct t_gui_buffer *buffer,
|
||||
void
|
||||
gui_buffer_set_unread (struct t_gui_buffer *buffer)
|
||||
{
|
||||
int refresh;
|
||||
|
||||
if (buffer->type == GUI_BUFFER_TYPE_FORMATED)
|
||||
{
|
||||
refresh = ((buffer->last_read_line != NULL)
|
||||
&& (buffer->last_read_line != buffer->last_line));
|
||||
|
||||
buffer->last_read_line = buffer->last_line;
|
||||
|
||||
if (refresh)
|
||||
gui_buffer_ask_chat_refresh (buffer, 2);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1399,9 +1399,6 @@ gui_input_set_unread ()
|
||||
{
|
||||
gui_buffer_set_unread (ptr_buffer);
|
||||
}
|
||||
|
||||
/* refresh all windows */
|
||||
gui_window_refresh_needed = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user