diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-10-29 07:35:38 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-10-29 07:35:38 +0100 |
commit | 093af02f0c57f53c5678cb416aa691ad50d4a841 (patch) | |
tree | 1c1e6aef828afee7f6af44621208ec4a95f3f4e2 /src/gui | |
parent | 1876af75009e70c1f47a834e5c89e8de2ff23f1b (diff) | |
download | weechat-093af02f0c57f53c5678cb416aa691ad50d4a841.zip |
core: remove useless condition (issue #1092)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-line.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c index 6e671ef61..2f190acc7 100644 --- a/src/gui/gui-line.c +++ b/src/gui/gui-line.c @@ -958,10 +958,11 @@ gui_line_add_to_list (struct t_gui_lines *lines, if (prefix_length > lines->prefix_max_length) lines->prefix_max_length = prefix_length; } - - /* adjust "lines_hidden" if the line is hidden */ - if (!line->data->displayed) + else + { + /* adjust "lines_hidden" if the line is hidden */ (lines->lines_hidden)++; + } lines->lines_count++; } |