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

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

[elpa] master 6bf3239 006/167: ivy.el (ivy-yank-word): Add only one spac


From: Oleh Krehel
Subject: [elpa] master 6bf3239 006/167: ivy.el (ivy-yank-word): Add only one space each time
Date: Tue, 08 Dec 2015 10:49:34 +0000

branch: master
commit 6bf3239a12d7a7a9c1beec9f5d5e3bd3c3f4474a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-yank-word): Add only one space each time
    
    The previous behavior got in trouble with consecutive spaces.
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 5f7ed6f..f9d093b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1793,7 +1793,7 @@ BUFFER may be a string or nil."
             (goto-char pt)
           (setq amend (buffer-substring-no-properties pt (point))))))
     (when amend
-      (insert amend))))
+      (insert (replace-regexp-in-string "  +" " " amend)))))
 
 (defun ivy-kill-ring-save ()
   "Store the current candidates into the kill ring.



reply via email to

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