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

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

[nongnu] elpa/evil-surround e4e592ecee 010/175: Merge pull request #2 fr


From: ELPA Syncer
Subject: [nongnu] elpa/evil-surround e4e592ecee 010/175: Merge pull request #2 from epsilon47/master
Date: Mon, 9 Oct 2023 13:00:59 -0400 (EDT)

branch: elpa/evil-surround
commit e4e592eceec08de9422c277bbdafb9b74841f7b3
Merge: 205c650d7f 67a82903ec
Author: Tim Harper <timcharper@gmail.com>
Commit: Tim Harper <timcharper@gmail.com>

    Merge pull request #2 from epsilon47/master
    
    Ref. "Swapping 'i' and 'e'" on the mailing list
---
 surround.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/surround.el b/surround.el
index 268fd7e8cb..8fe9d463c3 100644
--- a/surround.el
+++ b/surround.el
@@ -96,8 +96,7 @@ This is a cons cell (LEFT . RIGHT), both strings."
   "Return outer overlay for the delimited range represented by CHAR.
 This overlay includes the delimiters.
 See also `surround-inner-overlay'."
-  (let ((outer (lookup-key evil-motion-state-map
-                           (format "a%c" char))))
+  (let ((outer (lookup-key evil-outer-text-objects-map (string char))))
     (when (functionp outer)
       (setq outer (funcall outer))
       (when (evil-range-p outer)
@@ -121,8 +120,7 @@ See also `surround-inner-overlay'."
   "Return inner overlay for the delimited range represented by CHAR.
 This overlay excludes the delimiters.
 See also `surround-outer-overlay'."
-  (let ((inner (lookup-key evil-motion-state-map
-                           (format "i%c" char))))
+  (let ((inner (lookup-key evil-inner-text-objects-map (string char))))
     (when (functionp inner)
       (setq inner (funcall inner))
       (when (evil-range-p inner)



reply via email to

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