diff options
| author | Yuan Fu | 2024-08-06 21:54:20 -0700 |
|---|---|---|
| committer | Yuan Fu | 2024-08-06 21:54:20 -0700 |
| commit | 458a79b3c7eb164e254f86d5610418ffd5050fec (patch) | |
| tree | 3db344d27798d4677e2fb6ef09ad367aec542137 | |
| parent | 1a4c26d413f06342fc7fa9230f9312a95a37dae3 (diff) | |
| download | emacs-458a79b3c7eb164e254f86d5610418ffd5050fec.tar.gz emacs-458a79b3c7eb164e254f86d5610418ffd5050fec.zip | |
; 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.
| -rw-r--r-- | lisp/progmodes/c-ts-common.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 209 | (fill-region (max start-marker para-start) (min end para-end) arg)) | 209 | (fill-region (max start-marker para-start) (min end para-end) arg)) |
| 210 | 210 | ||
| 211 | ;; Unmask. | 211 | ;; Unmask. |
| 212 | (when end-marker | 212 | (when (and end-marker end-mask-done) |
| 213 | (goto-char end-marker) | 213 | (goto-char end-marker) |
| 214 | (delete-region (point) (+ end-len (point))) | 214 | (delete-region (point) (+ end-len (point))) |
| 215 | (insert (make-string end-len ?\s))) | 215 | (insert (make-string end-len ?\s))) |