From 09945f3a9acba76a9f5a11e30f8920ad9d63af86 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 6 Aug 2024 21:54:20 -0700 Subject: [PATCH] ; Minor change in c-ts-common--fill-block-comment * lisp/progmodes/c-ts-common.el: (c-ts-common--fill-block-comment): Add check for end-mask-done. This doesn't affect correctness, but makes the code easier to read. (cherry picked from commit 458a79b3c7eb164e254f86d5610418ffd5050fec) --- lisp/progmodes/c-ts-common.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index 674623a5e61..740c5e28747 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -206,7 +206,7 @@ comment." (fill-region (max start-marker para-start) (min end para-end) arg)) ;; Unmask. - (when end-marker + (when (and end-marker end-mask-done) (goto-char end-marker) (delete-region (point) (+ end-len (point))) (insert (make-string end-len ?\s))) -- 2.39.2