diff options
| author | Gregory Heytings | 2023-04-01 23:06:53 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2023-04-02 01:07:51 +0200 |
| commit | c0b9530862c2f27a23ad058d60171e06de3e9b50 (patch) | |
| tree | 23ae244c6350e4e207631f2b8b73674402db4e8e /src | |
| parent | 0cc8d6826ad2717a3fd21240d0c97232536cab93 (diff) | |
| download | emacs-c0b9530862c2f27a23ad058d60171e06de3e9b50.tar.gz emacs-c0b9530862c2f27a23ad058d60171e06de3e9b50.zip | |
Another final fix to last changes
* src/xdisp.c (get_small_narrowing_begv): Refine the value of 'bol_pos'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 940b8dc820e..30a32896aba 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -3644,7 +3644,7 @@ ptrdiff_t | |||
| 3644 | get_small_narrowing_begv (struct window *w, ptrdiff_t pos) | 3644 | get_small_narrowing_begv (struct window *w, ptrdiff_t pos) |
| 3645 | { | 3645 | { |
| 3646 | int len = get_narrowed_width (w); | 3646 | int len = get_narrowed_width (w); |
| 3647 | ptrdiff_t bol_pos = get_nearby_bol_pos (pos); | 3647 | ptrdiff_t bol_pos = max (get_nearby_bol_pos (pos), BEGV); |
| 3648 | return max (bol_pos + ((pos - bol_pos) / len - 1) * len, BEGV); | 3648 | return max (bol_pos + ((pos - bol_pos) / len - 1) * len, BEGV); |
| 3649 | } | 3649 | } |
| 3650 | 3650 | ||