projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc8d68
)
Another final fix to last changes
author
Gregory Heytings
<gregory@heytings.org>
Sat, 1 Apr 2023 23:06:53 +0000
(23:06 +0000)
committer
Gregory Heytings
<gregory@heytings.org>
Sat, 1 Apr 2023 23:07:51 +0000
(
01:07
+0200)
* src/xdisp.c (get_small_narrowing_begv): Refine the value of 'bol_pos'.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 940b8dc820ea3ecb47094dbeb6263d08a777f9a9..30a32896aba4f796b7001d40a07e08e03852d023 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-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);
}