From 71ad771ea4b77119abcff706b9666fa534963819 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 18 Aug 2023 12:08:18 +0800 Subject: fix(ui_compositor): only reset skipstart at first column (#24776) Problem: A double-width char in a floating window causes an extra space to be drawn to the left of its boundary. Solution: Only reset skipstart at the first column. Fix #24775 --- src/nvim/ui_compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim') diff --git a/src/nvim/ui_compositor.c b/src/nvim/ui_compositor.c index 59e9f71a69..e9b23d1298 100644 --- a/src/nvim/ui_compositor.c +++ b/src/nvim/ui_compositor.c @@ -402,7 +402,7 @@ static void compose_line(Integer row, Integer startcol, Integer endcol, LineFlag if (col == endcol - 1) { skipend = 0; } - } else if (n > 1 && linebuf[col - startcol + 1][0] == NUL) { + } else if (col == startcol && n > 1 && linebuf[1][0] == NUL) { skipstart = 0; } -- cgit