Another final fix to last changes

* src/xdisp.c (get_small_narrowing_begv): Refine the value of 'bol_pos'.
This commit is contained in:
Gregory Heytings 2023-04-01 23:06:53 +00:00
parent 0cc8d6826a
commit c0b9530862

View file

@ -3644,7 +3644,7 @@ ptrdiff_t
get_small_narrowing_begv (struct window *w, ptrdiff_t pos)
{
int len = get_narrowed_width (w);
ptrdiff_t bol_pos = get_nearby_bol_pos (pos);
ptrdiff_t bol_pos = max (get_nearby_bol_pos (pos), BEGV);
return max (bol_pos + ((pos - bol_pos) / len - 1) * len, BEGV);
}