From: Yuan Fu Date: Wed, 7 Aug 2024 04:54:20 +0000 (-0700) Subject: ; Minor change in c-ts-common--fill-block-comment X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09945f3a9acba76a9f5a11e30f8920ad9d63af86;p=emacs.git ; 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) --- 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)))