Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
69605:2d529c65c661 | 69606:40a0e06dc5aa |
---|---|
4794 /* We preserve the goal pixel coordinate across consecutive | 4794 /* We preserve the goal pixel coordinate across consecutive |
4795 calls to scroll-up or scroll-down. This avoids the | 4795 calls to scroll-up or scroll-down. This avoids the |
4796 possibility of point becoming "stuck" on a tall line when | 4796 possibility of point becoming "stuck" on a tall line when |
4797 scrolling by one line. */ | 4797 scrolling by one line. */ |
4798 if (window_scroll_pixel_based_preserve_y < 0 | 4798 if (window_scroll_pixel_based_preserve_y < 0 |
4799 || (current_kboard->Vlast_command != Qscroll_up | 4799 || (!EQ (current_kboard->Vlast_command, Qscroll_up) |
4800 && current_kboard->Vlast_command != Qscroll_down)) | 4800 && !EQ (current_kboard->Vlast_command, Qscroll_down))) |
4801 { | 4801 { |
4802 start_display (&it, w, start); | 4802 start_display (&it, w, start); |
4803 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); | 4803 move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); |
4804 window_scroll_pixel_based_preserve_y = it.current_y; | 4804 window_scroll_pixel_based_preserve_y = it.current_y; |
4805 } | 4805 } |