From 9a5b52dace4cb0fe6b99205911d9b2f2487a4a83 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 16 Jul 2022 16:29:24 +0300 Subject: [PATCH] * src/composite.c (find_automatic_composition): Fix off-by-one error. --- src/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composite.c b/src/composite.c index 1596e996d6c..2dee42b5503 100644 --- a/src/composite.c +++ b/src/composite.c @@ -1592,7 +1592,7 @@ find_automatic_composition (ptrdiff_t pos, ptrdiff_t limit, ptrdiff_t backlim, if (backlim < 0) { /* This assumes a newline can never be composed. */ - head = find_newline (pos, -1, 0, -1, -1, NULL, NULL, false) + 1; + head = find_newline (pos, -1, 0, -1, -1, NULL, NULL, false); } else head = backlim; -- 2.39.2