diff options
| author | Henrik Lissner <henrik@lissner.net> | 2016-02-23 10:35:53 -0500 |
|---|---|---|
| committer | Henrik Lissner <henrik@lissner.net> | 2016-02-23 10:35:53 -0500 |
| commit | a70e34164e16810ddfd5d608e598f9d975a3250e (patch) | |
| tree | f91259cd6bd8a69053ecba5df9b5769e33d50050 | |
| parent | 8b2ca83b7cdc4ef76aa9a1af7797b70d1cb25a5e (diff) | |
Don't indent first line on inline linewise surround
| -rwxr-xr-x | evil-surround.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/evil-surround.el b/evil-surround.el index a66e0ab..0ec6a44 100755 --- a/evil-surround.el +++ b/evil-surround.el @@ -314,12 +314,12 @@ Becomes this: (force-new-line (insert open) - (indent-according-to-mode) (newline-and-indent) - (goto-char (overlay-end overlay)) - (newline-and-indent) - (insert close) - (indent-region beg-pos (point))) + (let ((pt (point))) + (goto-char (overlay-end overlay)) + (newline-and-indent) + (insert close) + (indent-region pt (point)))) (t (insert open) |
