From 093af02f0c57f53c5678cb416aa691ad50d4a841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 29 Oct 2017 07:35:38 +0100 Subject: [PATCH] core: remove useless condition (issue #1092) --- src/gui/gui-line.c | 7 ++++--- 1 file 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++; }