diff options
| author | Eli Zaretskii | 2020-10-08 14:45:16 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2020-10-08 14:45:16 +0300 |
| commit | 040dcbe53e39a83fde9cbd09e47b6cfe575d2d52 (patch) | |
| tree | 42abec23e30295dae674a5dd068e6f7c58103ecb | |
| parent | c56eeba2ce3b20d1f420db5e0d8cff37df9835c0 (diff) | |
| download | emacs-040dcbe53e39a83fde9cbd09e47b6cfe575d2d52.tar.gz emacs-040dcbe53e39a83fde9cbd09e47b6cfe575d2d52.zip | |
Fix current-line hscrolling when overlays change
* src/xdisp.c (redisplay_internal): Disable "optimization 1" when
auto-hscrolling current line and we're redisplaying the selected
window. (Bug#43835)
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 05f69b0321f..6c401d0abb9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15581,7 +15581,12 @@ redisplay_internal (void) | |||
| 15581 | && CHARPOS (this_line_end_pos) == CHARPOS (tlendpos) | 15581 | && CHARPOS (this_line_end_pos) == CHARPOS (tlendpos) |
| 15582 | /* Line has same height as before. Otherwise other lines | 15582 | /* Line has same height as before. Otherwise other lines |
| 15583 | would have to be shifted up or down. */ | 15583 | would have to be shifted up or down. */ |
| 15584 | && this_line_pixel_height == line_height_before) | 15584 | && this_line_pixel_height == line_height_before |
| 15585 | /* Cannot use this optimization if hscrolling current | ||
| 15586 | line and this line is the current one, because | ||
| 15587 | display_line above is not informed about the | ||
| 15588 | current-line's vpos, and cannot DTRT in that case. */ | ||
| 15589 | && !hscrolling_current_line_p (w)) | ||
| 15585 | { | 15590 | { |
| 15586 | /* If this is not the window's last line, we must adjust | 15591 | /* If this is not the window's last line, we must adjust |
| 15587 | the charstarts of the lines below. */ | 15592 | the charstarts of the lines below. */ |