Another final fix to last changes
* src/xdisp.c (get_small_narrowing_begv): Refine the value of 'bol_pos'.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user