; Minor fix in c-ts-common--fill-block-comment
authorYuan Fu <casouri@gmail.com>
Wed, 7 Aug 2024 04:58:04 +0000 (21:58 -0700)
committerYuan Fu <casouri@gmail.com>
Wed, 7 Aug 2024 05:00:01 +0000 (22:00 -0700)
* 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

index 14dd29e07e2c8914631c7ea94837cbfd25d537fc..2ee150748c539b048b750af09e264ec91920ad28 100644 (file)
@@ -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)))