branch: externals/counsel commit 7cdde66c95d5205287e88010bc7a3a978c931db0 Author: Basil L. Contovounesios <conto...@tcd.ie> Commit: Basil L. Contovounesios <conto...@tcd.ie>
Insert minibuffer history wholesale * counsel.el (counsel-minibuffer-history): Replace minibuffer contents with selected history element, rather than just appending. Fixes #1484. --- counsel.el | 1 + 1 file changed, 1 insertion(+) diff --git a/counsel.el b/counsel.el index d83de86..43bc998 100644 --- a/counsel.el +++ b/counsel.el @@ -4831,6 +4831,7 @@ An extra action allows to switch to the process buffer." (ivy-read "History: " (ivy-history-contents minibuffer-history-variable) :keymap ivy-reverse-i-search-map :action (lambda (x) + (delete-minibuffer-contents) (insert (substring-no-properties (car x)))) :caller 'counsel-minibuffer-history)))