diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-08-06 10:01:17 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-08-06 10:01:17 +0100 |
commit | 4bccff95566c64ae99935b74a603203a1530a360 (patch) | |
tree | 1477eded7ceb390816f3d0139880b979233c0c96 /tty.c | |
parent | acd70ea643d12368d4724a951f27a136228df993 (diff) | |
parent | ef5602a5901774425d455a11f71a49258ed2ead6 (diff) | |
download | rtmux-4bccff95566c64ae99935b74a603203a1530a360.tar.gz rtmux-4bccff95566c64ae99935b74a603203a1530a360.tar.bz2 rtmux-4bccff95566c64ae99935b74a603203a1530a360.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1463,9 +1463,15 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx, tty_attributes(tty, &last, defaults, palette); tty_cursor(tty, atx + ux, aty); for (j = 0; j < gcp->data.width; j++) { - if (ux + j > nx) + if (ux > nx) break; - tty_putc(tty, ' '); + if (tty_check_overlay(tty, atx + ux, + aty)) + tty_putc(tty, ' '); + else { + tty_cursor(tty, atx + ux + 1, + aty); + } ux++; } } |