mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Follow up on 64222c69c
To fix cases where comment-line-break-function's first argument isn't optional.
This commit is contained in:
@ -99,7 +99,7 @@ more information on modifiers."
|
|||||||
;; FIXME oh god why
|
;; FIXME oh god why
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(if comment-line-break-function
|
(if comment-line-break-function
|
||||||
(funcall comment-line-break-function)
|
(funcall comment-line-break-function nil)
|
||||||
(comment-indent-new-line))
|
(comment-indent-new-line))
|
||||||
(when (and (derived-mode-p 'c-mode 'c++-mode 'objc-mode 'java-mode 'js2-mode)
|
(when (and (derived-mode-p 'c-mode 'c++-mode 'objc-mode 'java-mode 'js2-mode)
|
||||||
(eq (char-after) ?/))
|
(eq (char-after) ?/))
|
||||||
|
Reference in New Issue
Block a user