From cd9a215ef0768534881b775f66a9a3fa9ffceb44 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 6 Aug 2024 21:58:04 -0700 Subject: [PATCH] ; 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. --- 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 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))) -- 2.30.2