summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xevil-surround.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-surround.el b/evil-surround.el
index 4a8aaf5..1a16843 100755
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -294,8 +294,8 @@ Becomes this:
((eq type 'line)
(insert open)
- (indent-according-to-mode)
(newline-and-indent)
+ (indent-region (overlay-start overlay) (overlay-end overlay))
(goto-char (overlay-end overlay))
(insert close)
(indent-according-to-mode)