summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-11 08:55:26 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-10-11 08:55:26 +0200
commitf86f306ce28dd1daeaa40bb534f516b44d80a68f (patch)
treecef50d3750f30ecb93f8d487d48acada406cf0aa /src/gui/curses/gui-curses-window.c
parentbc8f82c3d63ec79c6dca20e4e5b97be9cffe59b8 (diff)
downloadweechat-f86f306ce28dd1daeaa40bb534f516b44d80a68f.zip
Fix some display bugs with read marker line, history, max prefix length, and chat refresh (bug #23153)
Some info about bugs fixed: - when marker line (dotted) was on top of window (and not visible), this caused bug on last lines of buffer (not refreshed) - marker line is not set for a buffer after a switch, only if buffer it not displayed in other window - when we delete lines in a buffer (if lines > weechat.history.max_lines), we force a full refresh of chat if remaining lines is < to chat height and we compute again max prefix length for buffer (before max prefix length was always incremented, never decremented)
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r--src/gui/curses/gui-curses-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index bc0a3f7ca..a72a5f4e0 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -633,7 +633,8 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
{
window->start_line = NULL;
window->start_line_pos = 0;
- window->buffer->last_read_line = window->buffer->last_line;
+ if (window->buffer->num_displayed == 0)
+ window->buffer->last_read_line = window->buffer->last_line;
if (buffer->last_read_line == buffer->last_line)
buffer->last_read_line = NULL;
gui_previous_buffer = window->buffer;