diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2006-03-20 22:22:25 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2006-03-20 22:22:25 +0000 |
commit | 7d6194544ec237070423a6edb3a3011931d177d9 (patch) | |
tree | 2fe2ed77b2b072c81f8b95090746d86a697b69fa /src/window.c | |
parent | e291625152dcaa94337755752ab1c20ec8decd32 (diff) | |
download | emacs-7d6194544ec237070423a6edb3a3011931d177d9.tar.gz |
(window_scroll_pixel_based): Yet another int/Lisp_Object mixup (YAILOM).
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index c8067f9035d..a44a08f3553 100644 --- a/src/window.c +++ b/src/window.c @@ -4796,8 +4796,8 @@ window_scroll_pixel_based (window, n, whole, noerror) 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); |