diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/textbuffer-view.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index c551d996..61f77989 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -355,11 +355,14 @@ static int view_line_draw(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line, } term_set_color(view->window, color); - /* get the beginning of the next subline */ - text_newline = subline == cache->count-1 ? NULL : - cache->lines[subline].start; - - need_move = !cache->lines[subline].continues; + if (subline == cache->count-1) { + text_newline = NULL; + need_move = FALSE; + } else { + /* get the beginning of the next subline */ + text_newline = cache->lines[subline].start; + need_move = !cache->lines[subline].continues; + } drawcount++; subline++; } |