Mercurial > emacs
diff src/window.c @ 69606:40a0e06dc5aa
(window_scroll_pixel_based): Yet another int/Lisp_Object mixup (YAILOM).
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Mon, 20 Mar 2006 22:22:25 +0000 |
| parents | aa89c5390b12 |
| children | abc53f51fd3e b901f4f12f33 e6bf73e43cf4 |
line wrap: on
line diff
--- a/src/window.c Mon Mar 20 20:34:16 2006 +0000 +++ b/src/window.c Mon Mar 20 22:22:25 2006 +0000 @@ -4796,8 +4796,8 @@ possibility of point becoming "stuck" on a tall line when scrolling by one line. */ if (window_scroll_pixel_based_preserve_y < 0 - || (current_kboard->Vlast_command != Qscroll_up - && current_kboard->Vlast_command != Qscroll_down)) + || (!EQ (current_kboard->Vlast_command, Qscroll_up) + && !EQ (current_kboard->Vlast_command, Qscroll_down))) { start_display (&it, w, start); move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
