* lisp/textmodes/fill.el (unfill-paragraph): Fix for wide chars.

This commit is contained in:
Sean Whitton 2026-03-08 14:55:10 +00:00
parent 39cdf4726c
commit 467069635b

View file

@ -969,7 +969,9 @@ and END."
(setq beg (point))
(fill-forward-paragraph arg)
(setq end (point)))))
(let ((fill-column (point-max)))
;; Multiple by at least 2 for any wide characters.
;; Multiply by at least `tab-width' for tab characters.
(let ((fill-column (* (max 2 tab-width) (point-max))))
(fill-region beg end)))
(declare-function comment-search-forward "newcomment" (limit &optional noerror))