From dcc83a3d382ba0b9a010c835795f5de4d85a4713 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 21 Jul 2023 11:08:23 +1000 Subject: [PATCH] render-lines: remove obvious error There can be no justification to multiply by cw twice. This doesn't affect display-ncurses but is problematic for x11 Signed-off-by: NeilBrown --- render-lines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render-lines.c b/render-lines.c index 711d7cbc..855f2fff 100644 --- a/render-lines.c +++ b/render-lines.c @@ -1054,7 +1054,7 @@ static int revalidate_start(struct rl_data *rl safe, while (hp->cx < prefix_len && rl->shift_left > 0 && shifts++ < 1000 && - hp->cx + curs_width * 8*curs_width < p->w) { + hp->cx + curs_width * 8 < p->w) { int shift = 8 * curs_width; if (shift > rl->shift_left) shift = rl->shift_left; -- 2.39.5