Code

Don't show out-of-sight tildes
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Thu, 16 Sep 2010 01:01:10 +0000 (21:01 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 16 Sep 2010 01:01:10 +0000 (21:01 -0400)
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c

diff --git a/tig.c b/tig.c
index b6df54c82060163ce895102c69180a1294b48e78..2a31ddd03b89507c1ecde2cfc788f1110a54eb15 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2407,11 +2407,12 @@ draw_chars(struct view *view, enum line_type type, const char *string,
                }
 
                waddnstr(view->win, string, len);
-       }
-       if (trimmed && use_tilde) {
-               set_view_attr(view, LINE_DELIMITER);
-               waddch(view->win, '~');
-               col++;
+
+               if (trimmed && use_tilde) {
+                       set_view_attr(view, LINE_DELIMITER);
+                       waddch(view->win, '~');
+                       col++;
+               }
        }
 
        return col;