diff options
| author | Richard Lawrence <richard.lawrence@berkeley.edu> | 2018-03-05 15:09:03 -0800 |
|---|---|---|
| committer | Richard Lawrence <richard.lawrence@berkeley.edu> | 2018-03-05 15:09:03 -0800 |
| commit | dc9c3a58e2a20c0c768fff77d19d8a1f08f14a6b (patch) | |
| tree | 4cb515d5a2448c788566bacfc8d97720caafffe0 /evil-common.el | |
| parent | 904df74ddec2ce3bf31db8eddb612a34424f2573 (diff) | |
Avoid using newline to respect use-hard-newlines
Since `newline` isn't good for non-interactive use, conditionally
insert `hard-newline` or simply "\n" in evil-insert-newline-{above,below}
Diffstat (limited to 'evil-common.el')
| -rw-r--r-- | evil-common.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evil-common.el b/evil-common.el index 2bc0d51..f0fe68a 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) - (newline) + (insert (if use-hard-newlines hard-newline "\n")) (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) - (newline) + (insert (if use-hard-newlines hard-newline "\n")) (back-to-indentation))) ;;; Markers |
