aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 53c5e274f62..5ed0711d20a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1525,8 +1525,7 @@ value is reasonable when this function is called.")
1525 Fset_buffer (w->buffer); 1525 Fset_buffer (w->buffer);
1526 /* This computation used to temporarily move point, but that can 1526 /* This computation used to temporarily move point, but that can
1527 have unwanted side effects due to text properties. */ 1527 have unwanted side effects due to text properties. */
1528 pos = *vmotion (startpos, -top, window_internal_width (w) - 1, 1528 pos = *vmotion (startpos, -top, w);
1529 XINT (w->hscroll), window);
1530 Fset_marker (w->start, make_number (pos.bufpos), w->buffer); 1529 Fset_marker (w->start, make_number (pos.bufpos), w->buffer);
1531 w->start_at_line_beg = ((pos.bufpos == BEGV 1530 w->start_at_line_beg = ((pos.bufpos == BEGV
1532 || FETCH_CHAR (pos.bufpos - 1) == '\n') ? Qt 1531 || FETCH_CHAR (pos.bufpos - 1) == '\n') ? Qt