From 467069635b1a03658a0bea157b217370a426d1fe Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 8 Mar 2026 14:55:10 +0000 Subject: [PATCH] * lisp/textmodes/fill.el (unfill-paragraph): Fix for wide chars. --- lisp/textmodes/fill.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 0e5fdaad864..4f8c058098e 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -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))