Merge pull request #4530 from razzmatazz/evil--insert-newline-fix-within-a-comment

Fix +evil--insert-new-line advice when opening new line inside a comment
This commit is contained in:
Henrik Lissner 2021-01-27 02:44:34 -05:00 committed by GitHub
commit 59d3d26901
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ more information on modifiers."
(cond ((sp-point-in-comment pos)
(setq evil-auto-indent nil)
(if comment-line-break-function
(funcall comment-line-break-function)
(funcall comment-line-break-function nil)
(comment-indent-new-line)))
;; TODO Find a better way to do this
((and (eq major-mode 'haskell-mode)