From 198712060ae40e91c185d656d28a1d647ee7a1d5 Mon Sep 17 00:00:00 2001 From: Saulius Menkevicius Date: Sun, 17 Jan 2021 15:52:04 +0200 Subject: [PATCH] Fix +evil--insert-new-line advice when opening new line inside a comment. `comment-line-break-function` requires a single `soft-newlines` argument. --- modules/editor/evil/autoload/advice.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/evil/autoload/advice.el b/modules/editor/evil/autoload/advice.el index 7b2300f31..c2abbd821 100644 --- a/modules/editor/evil/autoload/advice.el +++ b/modules/editor/evil/autoload/advice.el @@ -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)