aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman2002-05-28 20:26:34 +0000
committerRichard M. Stallman2002-05-28 20:26:34 +0000
commitdad67609c8173919fc1e5b7b5fca3a89e8b65091 (patch)
tree29408eb924cf33711dcb75922b8c642f8633b441 /src/window.c
parentbf3428a1e41d32f256bfa89f5da6b8e95f36d956 (diff)
downloademacs-dad67609c8173919fc1e5b7b5fca3a89e8b65091.tar.gz
emacs-dad67609c8173919fc1e5b7b5fca3a89e8b65091.zip
(window_scroll_pixel_based): Don't call Fbolp;
instead, see if the new start pos is at beginning of line.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 24a95dc53a1..60476414fb2 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4162,10 +4162,14 @@ window_scroll_pixel_based (window, n, whole, noerror)
4162 4162
4163 if (! vscrolled) 4163 if (! vscrolled)
4164 { 4164 {
4165 int pos = IT_CHARPOS (it);
4166 int bytepos;
4165 /* Set the window start, and set up the window for redisplay. */ 4167 /* Set the window start, and set up the window for redisplay. */
4166 set_marker_restricted (w->start, make_number (IT_CHARPOS (it)), 4168 set_marker_restricted (w->start, make_number (pos),
4167 w->buffer); 4169 w->buffer);
4168 w->start_at_line_beg = Fbolp (); 4170 bytepos = XMARKER (w->start)->bytepos;
4171 w->start_at_line_beg = ((pos == BEGV || FETCH_BYTE (bytepos - 1) == '\n')
4172 ? Qt : Qnil);
4169 w->update_mode_line = Qt; 4173 w->update_mode_line = Qt;
4170 XSETFASTINT (w->last_modified, 0); 4174 XSETFASTINT (w->last_modified, 0);
4171 XSETFASTINT (w->last_overlay_modified, 0); 4175 XSETFASTINT (w->last_overlay_modified, 0);