summaryrefslogtreecommitdiff
path: root/src/composite.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-07-16 16:29:24 +0300
committerEli Zaretskii <eliz@gnu.org>2022-07-16 16:29:24 +0300
commit9a5b52dace4cb0fe6b99205911d9b2f2487a4a83 (patch)
treeefcfa728ab9b97627f16cce2f56c012b29c8ce57 /src/composite.c
parent16e16e1f8c1001fca6597bf0efb61e236d935628 (diff)
downloademacs-9a5b52dace4cb0fe6b99205911d9b2f2487a4a83.tar.gz
emacs-9a5b52dace4cb0fe6b99205911d9b2f2487a4a83.tar.bz2
emacs-9a5b52dace4cb0fe6b99205911d9b2f2487a4a83.zip
* src/composite.c (find_automatic_composition): Fix off-by-one error.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c2
1 files changed, 1 insertions, 1 deletions
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;