diff options
| author | Stefan Kangas | 2022-01-27 09:45:49 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2022-01-27 09:45:49 +0100 |
| commit | a8862f313b92ac0fad35c7240ef4da8e52d55c1d (patch) | |
| tree | 732e3ecae25bf1d6528165417a0b53cc835baf38 /src | |
| parent | 82aa5be7ce1d5f508d42a4bb394760198a1c6e62 (diff) | |
| parent | c9524819eaf4e561a184b04dfca7e42970dc8809 (diff) | |
| download | emacs-a8862f313b92ac0fad35c7240ef4da8e52d55c1d.tar.gz emacs-a8862f313b92ac0fad35c7240ef4da8e52d55c1d.zip | |
Merge from origin/emacs-28
c9524819ea Partially revert a fill-region-as-paragraph regression
6075ea0b79 Fix 'make_lispy_position' when there's an image at EOB
# Conflicts:
# test/lisp/textmodes/fill-tests.el
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 9c0764be690..26bd45a8614 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10216,7 +10216,8 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos | |||
| 10216 | could have both positions after TO_CHARPOS or | 10216 | could have both positions after TO_CHARPOS or |
| 10217 | both positions before it, due to bidi | 10217 | both positions before it, due to bidi |
| 10218 | reordering.) */ | 10218 | reordering.) */ |
| 10219 | if (IT_CHARPOS (*it) != to_charpos | 10219 | if (to_charpos > 0 |
| 10220 | && IT_CHARPOS (*it) != to_charpos | ||
| 10220 | && ((IT_CHARPOS (it_backup) > to_charpos) | 10221 | && ((IT_CHARPOS (it_backup) > to_charpos) |
| 10221 | == (IT_CHARPOS (*it) > to_charpos))) | 10222 | == (IT_CHARPOS (*it) > to_charpos))) |
| 10222 | { | 10223 | { |