aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 71e490724b6..b02cc6b7969 100644
--- a/src/window.c
+++ b/src/window.c
@@ -930,7 +930,8 @@ if it isn't already recorded.")
930 930
931 start_display (&it, w, startp); 931 start_display (&it, w, startp);
932 move_it_vertically (&it, window_box_height (w)); 932 move_it_vertically (&it, window_box_height (w));
933 move_it_past_eol (&it); 933 if (it.current_y < it.last_visible_y)
934 move_it_past_eol (&it);
934 value = make_number (IT_CHARPOS (it)); 935 value = make_number (IT_CHARPOS (it));
935 936
936 if (old_buffer) 937 if (old_buffer)