From 7d6194544ec237070423a6edb3a3011931d177d9 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 20 Mar 2006 22:22:25 +0000 Subject: (window_scroll_pixel_based): Yet another int/Lisp_Object mixup (YAILOM). --- src/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/window.c') 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); -- cgit v1.2.1