From: Eli Zaretskii Date: Sat, 16 Jul 2022 13:29:24 +0000 (+0300) Subject: * src/composite.c (find_automatic_composition): Fix off-by-one error. X-Git-Tag: emacs-29.0.90~1447^2~894 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9a5b52dace4cb0fe6b99205911d9b2f2487a4a83;p=emacs.git * src/composite.c (find_automatic_composition): Fix off-by-one error. --- 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;