summaryrefslogtreecommitdiffstats
path: root/format-draw.c
diff options
context:
space:
mode:
authornicm <nicm>2020-03-07 10:58:32 +0000
committernicm <nicm>2020-03-07 10:58:32 +0000
commit2991f4aad0d010db57ce979d151191836036cb5f (patch)
treeef869be7d0581db765a15743edf8419ade64c181 /format-draw.c
parentadd75a06cd9dfa7c01608e81ab418b37ec17533c (diff)
Use correct width of right marker so it doesn't draw over status right
when more than one character. Reported by Tyler Culp.
Diffstat (limited to 'format-draw.c')
-rw-r--r--format-draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/format-draw.c b/format-draw.c
index bb16e0dd..85248aa6 100644
--- a/format-draw.c
+++ b/format-draw.c
@@ -142,7 +142,8 @@ format_draw_put_list(struct screen_write_ctx *octx,
width -= list_left->cx;
}
if (start + width < list->cx && width > list_right->cx) {
- screen_write_cursormove(octx, ocx + offset + width - 1, ocy, 0);
+ screen_write_cursormove(octx, ocx + offset + width -
+ list_right->cx, ocy, 0);
screen_write_fast_copy(octx, list_right, 0, 0, list_right->cx,
1);
width -= list_right->cx;