]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fwindow_end): Call move_it_past_eol only if
authorGerd Moellmann <gerd@gnu.org>
Thu, 1 Mar 2001 19:33:02 +0000 (19:33 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 1 Mar 2001 19:33:02 +0000 (19:33 +0000)
ending up on a partially visible line.

src/ChangeLog
src/window.c

index 478786d31fe2d4001a2696895f3cb7b2743e6206..7f3285bdae2d9013c0acb19be13767d2171257f4 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-01  Gerd Moellmann  <gerd@gnu.org>
+
+       * window.c (Fwindow_end): Call move_it_past_eol only if
+       ending up on a partially visible line.
+
 2001-03-01  Dave Love  <fx@gnu.org>
 
        * ccl.c (Fccl_execute): Doc fix.
index 71e490724b61ac16d60f7b1d9193d6cee4889d4c..b02cc6b7969c66cf494691dcf9dbb77f4e553a85 100644 (file)
@@ -930,7 +930,8 @@ if it isn't already recorded.")
       
       start_display (&it, w, startp);
       move_it_vertically (&it, window_box_height (w));
-      move_it_past_eol (&it);
+      if (it.current_y < it.last_visible_y)
+       move_it_past_eol (&it);
       value = make_number (IT_CHARPOS (it));
       
       if (old_buffer)