mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
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)
This commit is contained in:
parent
c56eeba2ce
commit
040dcbe53e
@ -15581,7 +15581,12 @@ redisplay_internal (void)
|
||||
&& CHARPOS (this_line_end_pos) == CHARPOS (tlendpos)
|
||||
/* Line has same height as before. Otherwise other lines
|
||||
would have to be shifted up or down. */
|
||||
&& this_line_pixel_height == line_height_before)
|
||||
&& this_line_pixel_height == line_height_before
|
||||
/* Cannot use this optimization if hscrolling current
|
||||
line and this line is the current one, because
|
||||
display_line above is not informed about the
|
||||
current-line's vpos, and cannot DTRT in that case. */
|
||||
&& !hscrolling_current_line_p (w))
|
||||
{
|
||||
/* If this is not the window's last line, we must adjust
|
||||
the charstarts of the lines below. */
|
||||
|
Loading…
Reference in New Issue
Block a user