Compare commits

..

2 Commits

8
st.c
View File

@@ -3030,7 +3030,13 @@ drawregion(int x1, int y1, int x2, int y2)
continue;
/* draw from horizontally scrolled position */
xdrawline(&line[term.hscr], x1, y, MIN(x2, linelen - term.hscr));
/* fix inconsistent line lengths: ensure we draw full terminal width when possible */
int draw_width = MIN(x2, linelen - term.hscr);
if (draw_width < x2 && linelen > term.hscr) {
/* expand to terminal width if line might have more content */
draw_width = x2;
}
xdrawline(&line[term.hscr], x1, y, draw_width);
}
}