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
1 changed files with 6 additions and 1 deletions
|
@ -15581,7 +15581,12 @@ redisplay_internal (void)
|
||||||
&& CHARPOS (this_line_end_pos) == CHARPOS (tlendpos)
|
&& CHARPOS (this_line_end_pos) == CHARPOS (tlendpos)
|
||||||
/* Line has same height as before. Otherwise other lines
|
/* Line has same height as before. Otherwise other lines
|
||||||
would have to be shifted up or down. */
|
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
|
/* If this is not the window's last line, we must adjust
|
||||||
the charstarts of the lines below. */
|
the charstarts of the lines below. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue