Fix c-ts-mode--fill-paragraph
Example: doc: /* Return non-nil if NODE1 and NODE2 are the same node. If any one of NODE1 and NODE2 is nil, return nil. This function uses the same equivalence metric as `equal'. */ * lisp/progmodes/c-ts-mode.el (c-ts-mode--fill-paragraph): Fix the case where there are words before the /*, like the example above.
This commit is contained in:
parent
2a2b1d09ac
commit
a760364f5f
1 changed files with 4 additions and 1 deletions
|
@ -726,7 +726,10 @@ ARG is passed to `fill-paragraph'."
|
|||
;; Let `fill-paragraph' do its thing.
|
||||
(goto-char orig-point)
|
||||
(narrow-to-region start end)
|
||||
(funcall #'fill-paragraph arg)
|
||||
;; We don't want to fill the region between START and
|
||||
;; START-MARKER, otherwise the filling function might delete
|
||||
;; some spaces there.
|
||||
(fill-region start-marker end arg)
|
||||
;; Unmask.
|
||||
(when start-marker
|
||||
(goto-char start-marker)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue