emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 458a79b3c7e: ; Minor change in c-ts-common--fill-block-comment


From: Yuan Fu
Subject: master 458a79b3c7e: ; Minor change in c-ts-common--fill-block-comment
Date: Wed, 7 Aug 2024 00:55:11 -0400 (EDT)

branch: master
commit 458a79b3c7eb164e254f86d5610418ffd5050fec
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; 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.
---
 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 7d51d2434e6..7609d8fdc61 100644
--- a/lisp/progmodes/c-ts-common.el
+++ b/lisp/progmodes/c-ts-common.el
@@ -209,7 +209,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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]