Skip to content

Commit

Permalink
Insert minibuffer history wholesale
Browse files Browse the repository at this point in the history
* counsel.el (counsel-minibuffer-history): Replace minibuffer
contents with selected history element, rather than just appending.

Fixes abo-abo#1484.
  • Loading branch information
basil-conto committed Aug 19, 2021
1 parent c1e53c2 commit 7cdde66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions counsel.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 7cdde66

Please sign in to comment.