summaryrefslogtreecommitdiff
path: root/buframe.el
diff options
context:
space:
mode:
authorAl Haji-Ali <a.hajiali@hw.ac.uk>2026-04-15 12:28:55 +0100
committerAl Haji-Ali <a.hajiali@hw.ac.uk>2026-04-15 12:28:55 +0100
commit000f49cb5afcdb32ff0695da3b2c8ea207032f4a (patch)
treed8222d9a55977b77b8a3e1f7149b7930a6f53cd2 /buframe.el
parent99bcd2835e9806fb974beba18856b602bfb36758 (diff)
Fixed a bug in optimized computationexternals/buframe
Diffstat (limited to 'buframe.el')
-rw-r--r--buframe.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/buframe.el b/buframe.el
index 0a11b82..04d6ccc 100644
--- a/buframe.el
+++ b/buframe.el
@@ -129,7 +129,7 @@ are relative to the WINDOW's native frame."
(let* ((bol (point))
(next (progn (vertical-motion 1 window) (point)))
(seg-start (max rs bol))
- (seg-end (min re next)))
+ (seg-end (min re (1- next))))
(when (< seg-start seg-end)
(let* ((x-off (if (= bol rs) rs-x 0)) ; non-zero only on first line
(x (+ (nth 0 edges) x-off))