; * src/xdisp.c (pos_visible_p): Yet another minor fix for bug#42039.
This commit is contained in:
parent
5280e118c0
commit
b87fc938a0
1 changed files with 7 additions and 4 deletions
|
@ -1851,10 +1851,13 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,
|
||||||
/* Account for line-number display, if IT3 still
|
/* Account for line-number display, if IT3 still
|
||||||
didn't. This can happen if START - 1 is the
|
didn't. This can happen if START - 1 is the
|
||||||
first or the last character on its display line. */
|
first or the last character on its display line. */
|
||||||
|
if (!it3.line_number_produced_p)
|
||||||
|
{
|
||||||
if (it3.lnum_pixel_width > 0)
|
if (it3.lnum_pixel_width > 0)
|
||||||
top_x += it3.lnum_pixel_width;
|
top_x += it3.lnum_pixel_width;
|
||||||
else if (it.line_number_produced_p)
|
else if (it.line_number_produced_p)
|
||||||
top_x += it.lnum_pixel_width;
|
top_x += it.lnum_pixel_width;
|
||||||
|
}
|
||||||
/* Normally, we would exit the above loop because we
|
/* Normally, we would exit the above loop because we
|
||||||
found the display element whose character
|
found the display element whose character
|
||||||
position is CHARPOS. For the contingency that we
|
position is CHARPOS. For the contingency that we
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue