]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c (move_it_to): Fix last change. (Bug#46316)
authorEli Zaretskii <eliz@gnu.org>
Sun, 14 Feb 2021 20:11:05 +0000 (22:11 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 14 Feb 2021 20:11:05 +0000 (22:11 +0200)
src/xdisp.c

index a1956824214771e79019b4f430909c507db409a4..f86d3527b3d747e739a510ddf084a80e4afb1b76 100644 (file)
@@ -10051,7 +10051,8 @@ move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
          if ((op & MOVE_TO_POS) != 0
              && (IT_CHARPOS (*it) > to_charpos
                  || (IT_CHARPOS (*it) == to_charpos
-                     && to_charpos == ZV)))
+                     && to_charpos == ZV
+                     && FETCH_BYTE (ZV_BYTE - 1) != '\n')))
            {
              reached = 9;
              goto out;