diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-25 18:17:46 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-25 18:17:46 +0100 |
commit | f3e7749b215fd6baa2c6882346c5c7e03a1d54ad (patch) | |
tree | 07ea02181f6068868520fe466a61de997da64ce8 /src/gui/curses/gui-curses-chat.c | |
parent | 613e9743e590b82db35d6c9a5686fb84a1ef8f9c (diff) | |
download | weechat-f3e7749b215fd6baa2c6882346c5c7e03a1d54ad.zip |
Fix with read marker, can not be filtered any more (bug #25590)
Diffstat (limited to 'src/gui/curses/gui-curses-chat.c')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index ec0633567..350c0adbc 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -64,10 +64,19 @@ gui_chat_get_real_width (struct t_gui_window *window) int gui_chat_marker_for_line (struct t_gui_buffer *buffer, struct t_gui_line *line) { + struct t_gui_line *last_read_line; + /* marker is not set for buffer? */ if (!buffer->last_read_line) return 0; + last_read_line = buffer->last_read_line; + if (!last_read_line->displayed) + last_read_line = gui_chat_get_prev_line_displayed (last_read_line); + + if (!last_read_line) + return 0; + /* marker is disabled in config? */ if ((CONFIG_INTEGER(config_look_read_marker) != CONFIG_LOOK_READ_MARKER_LINE) && (CONFIG_INTEGER(config_look_read_marker) != CONFIG_LOOK_READ_MARKER_DOTTED_LINE)) @@ -75,7 +84,7 @@ gui_chat_marker_for_line (struct t_gui_buffer *buffer, struct t_gui_line *line) while (line) { - if (buffer->last_read_line == line) + if (last_read_line == line) return 1; if (line->displayed) |