changeset 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 67c8e0a89b2d
children 856f9ab21ea7
files src/window.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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)