aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorNoam Postavsky2017-01-21 13:24:47 -0500
committerNoam Postavsky2017-02-02 21:21:18 -0500
commitb9be4c14e89f5cec08a7a0f0d24033e0e6ff5ef0 (patch)
treeba9f3ce95ecfc4f303a06f8e95a28c6cc9125eef /src/dispextern.h
parente27a91cddc1a66c25e09d3929c5625637ec34a49 (diff)
downloademacs-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.h1
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 *);
3263void move_it_in_display_line (struct it *it, 3263void 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);
3266int partial_line_height (struct it *it_origin);
3266bool in_display_vector_p (struct it *); 3267bool in_display_vector_p (struct it *);
3267int frame_mode_line_height (struct frame *); 3268int frame_mode_line_height (struct frame *);
3268extern bool redisplaying_p; 3269extern bool redisplaying_p;