emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9a5b52dace: * src/composite.c (find_automatic_composition): Fix o


From: Eli Zaretskii
Subject: master 9a5b52dace: * src/composite.c (find_automatic_composition): Fix off-by-one error.
Date: Sat, 16 Jul 2022 09:30:06 -0400 (EDT)

branch: master
commit 9a5b52dace4cb0fe6b99205911d9b2f2487a4a83
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    * 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 1596e996d6..2dee42b550 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]