Assume wide chars may span any number of columns during semlf filling

* lisp/textmodes/fill.el (fill-region-as-paragraph-semlf): Use
`most-positive-fixnum' as the fill-column value during the unfill phase.
This commit is contained in:
Roi Martin
2026-04-02 16:21:25 +02:00
committed by Stefan Monnier
parent dc7c36ea12
commit 5032b2167d

View File

@@ -1700,7 +1700,7 @@ and URL `https://rhodesmill.org/brandon/2012/one-sentence-per-line/'."
(to (copy-marker (max from to) t))
pfx)
(goto-char from)
(let ((fill-column (* 2 (point-max)))) ; Wide characters span up to two columns.
(let ((fill-column most-positive-fixnum))
(setq pfx (or (save-excursion
(fill-region-as-paragraph-default (point)
to