From 904df74ddec2ce3bf31db8eddb612a34424f2573 Mon Sep 17 00:00:00 2001 From: Richard Lawrence Date: Mon, 5 Mar 2018 11:37:07 -0800 Subject: Respect use-hard-newlines in evil-insert-newline-{above/below} Call `newline`, which respects use-hard-newlines. --- evil-common.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evil-common.el b/evil-common.el index a9d6cd3..2bc0d51 100644 --- a/evil-common.el +++ b/evil-common.el @@ -1886,7 +1886,7 @@ closer if MOVE is non-nil." with regard to indentation." (evil-narrow-to-field (evil-move-beginning-of-line) - (insert "\n") + (newline) (forward-line -1) (back-to-indentation))) @@ -1895,7 +1895,7 @@ with regard to indentation." with regard to indentation." (evil-narrow-to-field (evil-move-end-of-line) - (insert "\n") + (newline) (back-to-indentation))) ;;; Markers -- cgit v1.0