diff options
author | nicm <nicm> | 2021-08-06 07:32:21 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-06 07:32:21 +0000 |
commit | ef5602a5901774425d455a11f71a49258ed2ead6 (patch) | |
tree | a54ea1b0eae87986750c478da69ed9a4bdb1f0cd | |
parent | 950d3c5bbc99b68a353e78bbfe60933d60e3cf46 (diff) | |
download | rtmux-ef5602a5901774425d455a11f71a49258ed2ead6.tar.gz rtmux-ef5602a5901774425d455a11f71a49258ed2ead6.tar.bz2 rtmux-ef5602a5901774425d455a11f71a49258ed2ead6.zip |
Another minor fix - do not draw positions that are under the popup with
spaces, from Anindya Mukherjee. Also a typo fix from Linus Arver.
-rw-r--r-- | screen-write.c | 2 | ||||
-rw-r--r-- | tty.c | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/screen-write.c b/screen-write.c index e351a5e5..8cc81f92 100644 --- a/screen-write.c +++ b/screen-write.c @@ -596,7 +596,7 @@ screen_write_hline(struct screen_write_ctx *ctx, u_int nx, int left, int right) screen_write_set_cursor(ctx, cx, cy); } -/* Draw a horizontal line on screen. */ +/* Draw a vertical line on screen. */ void screen_write_vline(struct screen_write_ctx *ctx, u_int ny, int top, int bottom) { @@ -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++; } } |