; Go back to original point when filling comments in c-ts-mode

* lisp/progmodes/c-ts-common.el:
(c-ts-common--fill-block-comment): Go to original point.
This commit is contained in:
Yuan Fu 2023-02-02 14:48:22 -08:00
parent b8009bbf2d
commit 74e715cb72
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -194,7 +194,8 @@ comment."
(when end-marker
(goto-char end-marker)
(delete-region (point) (+ end-len (point)))
(insert (make-string end-len ?\s))))))
(insert (make-string end-len ?\s)))
(goto-char orig-point))))
(defun c-ts-common-comment-setup ()
"Set up local variables for C-like comment.