diff src/window.c @ 36471:bd660efb3fe7

(Fwindow_end): Call move_it_past_eol only if ending up on a partially visible line.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 01 Mar 2001 19:31:06 +0000
parents f2fc8b180aaa
children f85346ef86be
line wrap: on
line diff
--- a/src/window.c	Thu Mar 01 18:47:58 2001 +0000
+++ b/src/window.c	Thu Mar 01 19:31:06 2001 +0000
@@ -930,7 +930,8 @@
       
       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)