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

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

[elpa] master 9a2b110 214/399: ivy.el (ivy-insert-current): Insert text


From: Oleh Krehel
Subject: [elpa] master 9a2b110 214/399: ivy.el (ivy-insert-current): Insert text without properties
Date: Sat, 20 Jul 2019 14:57:26 -0400 (EDT)

branch: master
commit 9a2b110d1c8d5def8a1afaa242a924a26f2974fc
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-insert-current): Insert text without properties
    
    "M-i" should be equivalent to the user typing out the inserted text,
    i.e. without text properties.
    
    Re #2040
---
 ivy.el | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/ivy.el b/ivy.el
index 1f25743..7da52fe 100644
--- a/ivy.el
+++ b/ivy.el
@@ -4154,10 +4154,13 @@ If the region is active, forward to `kill-ring-save' 
instead."
 Don't finish completion."
   (interactive)
   (delete-minibuffer-contents)
-  (if (and ivy--directory
-           (ivy--dirname-p (ivy-state-current ivy-last)))
-      (insert (substring (ivy-state-current ivy-last) 0 -1))
-    (insert (ivy-state-current ivy-last))))
+  (insert
+   (if (and ivy--directory
+            (ivy--dirname-p (ivy-state-current ivy-last)))
+       (substring-no-properties
+        (ivy-state-current ivy-last) 0 -1)
+     (substring-no-properties
+      (ivy-state-current ivy-last)))))
 
 (define-obsolete-variable-alias 'ivy--preferred-re-builders
     'ivy-preferred-re-builders "0.10.0")



reply via email to

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