summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-06 07:32:21 +0000
committernicm <nicm>2021-08-06 07:32:21 +0000
commitef5602a5901774425d455a11f71a49258ed2ead6 (patch)
treea54ea1b0eae87986750c478da69ed9a4bdb1f0cd /tty.c
parent950d3c5bbc99b68a353e78bbfe60933d60e3cf46 (diff)
Another minor fix - do not draw positions that are under the popup with
spaces, from Anindya Mukherjee. Also a typo fix from Linus Arver.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index e0a3f6b6..cb0fdec0 100644
--- a/tty.c
+++ b/tty.c
@@ -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++;
}
}