commit 89dbfdbfb8ddf8519278212d227aba939f6f1ee5
parent b8d4bb7003edeced1c593215730344c87d0f6ab7
Author: Samuel Dudik <samuel.dudik@gmail.com>
Date: Sun, 2 Aug 2020 17:46:37 +0200
Fix word wrapping text with a space at the end of line
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/herbe.c b/herbe.c
@@ -72,7 +72,7 @@ int main(int argc, char *argv[])
while (info.width < max_text_width)
{
eol++;
- XftTextExtentsUtf8(display, font, body, eol, &info);
+ XftTextExtentsUtf8(display, font, body + eols[num_of_lines - 1], eol, &info);
}
--eol;