Commit d6542ea0 authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid errors in zone.el when there's overlay at EOB

* lisp/play/zone.el (zone): Make sure the window-end position
is calculated accurately, to avoid errors from
buffer-substring.  (Bug#33384)
parent 936a8f30
Pipeline #80 failed with stage
......@@ -109,7 +109,7 @@ If the element is a function or a list of a function and a number,
(let ((f (selected-frame))
(outbuf (get-buffer-create "*zone*"))
(text (buffer-substring (window-start) (window-end)))
(text (buffer-substring (window-start) (window-end nil t)))
(wp (1+ (- (window-point)
(put 'zone 'orig-buffer (current-buffer))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment