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

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

[nongnu] elpa/iedit 20c1075948 032/301: remove conditions on setting `ie


From: ELPA Syncer
Subject: [nongnu] elpa/iedit 20c1075948 032/301: remove conditions on setting `iedit-before-modification-string'.
Date: Mon, 10 Jan 2022 22:58:47 -0500 (EST)

branch: elpa/iedit
commit 20c107594827f731050f1df193b6edd0e99b7508
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>

    remove conditions on setting `iedit-before-modification-string'.
    
    We should always set this, since we use it for a comparison later.
---
 iedit.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/iedit.el b/iedit.el
index 3fc474dedb..86c8989169 100644
--- a/iedit.el
+++ b/iedit.el
@@ -469,10 +469,9 @@ exit iedti mode."
                    (add-hook 'post-command-hook 'iedit-reset-aborting nil t))
           (progn (setq iedit-before-modification-beg beg)
                  (setq iedit-before-modification-end end)
-                 (unless (eq beg end)
-                   (setq iedit-before-modification-string
-                         (buffer-substring-no-properties beg end)))))
-      ;; after modification ;; todo more ellaborate on these conditions
+                 (setq iedit-before-modification-string
+                       (buffer-substring-no-properties beg end))))
+      ;; after modification
 
       ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
       ;; Check if we are inserting into zero-width occurrence. ;;



reply via email to

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