branch: master commit 6bf3239a12d7a7a9c1beec9f5d5e3bd3c3f4474a Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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.