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

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

[elpa] master cb26121 41/67: ivy.el: Fix ivy-history recording the full


From: Oleh Krehel
Subject: [elpa] master cb26121 41/67: ivy.el: Fix ivy-history recording the full text instead of input
Date: Sun, 22 Mar 2015 17:34:03 +0000

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

    ivy.el: Fix ivy-history recording the full text instead of input
    
    * ivy.el (ivy-read): Update.
    
    Fixes #21
---
 ivy.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ivy.el b/ivy.el
index 462067e..79d3bff 100644
--- a/ivy.el
+++ b/ivy.el
@@ -145,6 +145,8 @@ If INDEX is non-nil select the corresponding candidate."
              ivy-minibuffer-map
              nil
              'ivy-history))
+       (pop ivy-history)
+       (add-to-list 'ivy-history ivy-text)
        (remove-hook 'post-command-hook #'ivy--exhibit)))))
 
 (defvar ivy-text ""



reply via email to

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