emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-surround ace9ca3292 064/175: Merge pull request #61 f


From: ELPA Syncer
Subject: [nongnu] elpa/evil-surround ace9ca3292 064/175: Merge pull request #61 from jasminpatry/fix/evil-surround-region-indent
Date: Mon, 9 Oct 2023 13:01:03 -0400 (EDT)

branch: elpa/evil-surround
commit ace9ca329287887371c833a7d4226abc2ce1ccfe
Merge: 78eddc8077 4c5e3bf0bc
Author: Tim Harper <timcharper@gmail.com>
Commit: Tim Harper <timcharper@gmail.com>

    Merge pull request #61 from jasminpatry/fix/evil-surround-region-indent
    
    Fix indentation of surrounded lines
---
 evil-surround.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evil-surround.el b/evil-surround.el
index 09f06fff47..7c42d6c03d 100755
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -293,8 +293,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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]