From: Yuan Fu Date: Wed, 7 Aug 2024 04:58:04 +0000 (-0700) Subject: ; Minor fix in c-ts-common--fill-block-comment X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~584 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cd9a215ef0768534881b775f66a9a3fa9ffceb44;p=emacs.git ; Minor fix in c-ts-common--fill-block-comment * lisp/progmodes/c-ts-common.el: (c-ts-common--fill-block-comment): Checking for end-mask done is equivalent to checking end-marker, so the original code doesn't have a bug. --- diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index 14dd29e07e2..2ee150748c5 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -214,7 +214,7 @@ comment." (goto-char start-marker) (delete-char 1) (insert "/")) - (when (and end-mask-done start-marker) + (when (and end-mask-done end-marker) (goto-char end-marker) (delete-region (point) (+ end-len (point))) (insert (make-string end-len ?\s)))