Compare commits
2 Commits
f7d7e0fc15
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
71b9411215
|
|||
|
98438b57b3
|
8
st.c
8
st.c
@@ -3030,7 +3030,13 @@ drawregion(int x1, int y1, int x2, int y2)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* draw from horizontally scrolled position */
|
/* 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user