diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c index 675a493e18e..7965269f0e7 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4834,8 +4834,8 @@ window_scroll_pixel_based (Lisp_Object window, int n, int whole, int noerror) | |||
| 4834 | possibility of point becoming "stuck" on a tall line when | 4834 | possibility of point becoming "stuck" on a tall line when |
| 4835 | scrolling by one line. */ | 4835 | scrolling by one line. */ |
| 4836 | if (window_scroll_pixel_based_preserve_y < 0 | 4836 | if (window_scroll_pixel_based_preserve_y < 0 |
| 4837 | || !SYMBOLP (current_kboard->Vlast_command) | 4837 | || !SYMBOLP (KVAR (current_kboard, Vlast_command)) |
| 4838 | || NILP (Fget (current_kboard->Vlast_command, Qscroll_command))) | 4838 | || NILP (Fget (KVAR (current_kboard, Vlast_command), Qscroll_command))) |
| 4839 | { | 4839 | { |
| 4840 | start_display (&it, w, start); | 4840 | start_display (&it, w, start); |
| 4841 | move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); | 4841 | move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS); |
| @@ -5091,8 +5091,8 @@ window_scroll_line_based (Lisp_Object window, int n, int whole, int noerror) | |||
| 5091 | if (!NILP (Vscroll_preserve_screen_position)) | 5091 | if (!NILP (Vscroll_preserve_screen_position)) |
| 5092 | { | 5092 | { |
| 5093 | if (window_scroll_preserve_vpos <= 0 | 5093 | if (window_scroll_preserve_vpos <= 0 |
| 5094 | || !SYMBOLP (current_kboard->Vlast_command) | 5094 | || !SYMBOLP (KVAR (current_kboard, Vlast_command)) |
| 5095 | || NILP (Fget (current_kboard->Vlast_command, Qscroll_command))) | 5095 | || NILP (Fget (KVAR (current_kboard, Vlast_command), Qscroll_command))) |
| 5096 | { | 5096 | { |
| 5097 | struct position posit | 5097 | struct position posit |
| 5098 | = *compute_motion (startpos, 0, 0, 0, | 5098 | = *compute_motion (startpos, 0, 0, 0, |