From 89dbfdbfb8ddf8519278212d227aba939f6f1ee5 Mon Sep 17 00:00:00 2001 From: Samuel Dudik Date: Sun, 2 Aug 2020 17:46:37 +0200 Subject: [PATCH] Fix word wrapping text with a space at the end of line --- herbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/herbe.c b/herbe.c index e2e3b4b..5bcb0a1 100644 --- 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;