diff options
| author | Noam Postavsky | 2017-01-21 13:24:47 -0500 |
|---|---|---|
| committer | Noam Postavsky | 2017-02-02 21:21:18 -0500 |
| commit | b9be4c14e89f5cec08a7a0f0d24033e0e6ff5ef0 (patch) | |
| tree | ba9f3ce95ecfc4f303a06f8e95a28c6cc9125eef /src/dispextern.h | |
| parent | e27a91cddc1a66c25e09d3929c5625637ec34a49 (diff) | |
| download | emacs-b9be4c14e89f5cec08a7a0f0d24033e0e6ff5ef0.tar.gz emacs-b9be4c14e89f5cec08a7a0f0d24033e0e6ff5ef0.zip | |
Fix scrolling with partial lines
* src/xdisp.c (partial_line_height): New function.
(try_scrolling):
* src/window.c (window_scroll_pixel_based): Use it for calculating the
pixel scroll margin correctly in a window with partial lines.
Diffstat (limited to 'src/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 51222e636be..eb71a82311c 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3263,6 +3263,7 @@ void move_it_past_eol (struct it *); | |||
| 3263 | void move_it_in_display_line (struct it *it, | 3263 | void move_it_in_display_line (struct it *it, |
| 3264 | ptrdiff_t to_charpos, int to_x, | 3264 | ptrdiff_t to_charpos, int to_x, |
| 3265 | enum move_operation_enum op); | 3265 | enum move_operation_enum op); |
| 3266 | int partial_line_height (struct it *it_origin); | ||
| 3266 | bool in_display_vector_p (struct it *); | 3267 | bool in_display_vector_p (struct it *); |
| 3267 | int frame_mode_line_height (struct frame *); | 3268 | int frame_mode_line_height (struct frame *); |
| 3268 | extern bool redisplaying_p; | 3269 | extern bool redisplaying_p; |