diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-07-16 16:29:24 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-07-16 16:29:24 +0300 |
commit | 9a5b52dace4cb0fe6b99205911d9b2f2487a4a83 (patch) | |
tree | efcfa728ab9b97627f16cce2f56c012b29c8ce57 /src/composite.c | |
parent | 16e16e1f8c1001fca6597bf0efb61e236d935628 (diff) | |
download | emacs-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.c | 2 |
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; |