Remove hacky counsel-find-file workaround, as a fix was merged upstream

This commit is contained in:
Adam Goldsmith 2020-05-23 15:39:01 -04:00
parent baad94b312
commit 120093f3ed
1 changed files with 1 additions and 10 deletions

View File

@ -390,17 +390,8 @@
(use-package ivy :ensure
:delight
:config
;; hacky temp fix for issue where counsel-find-file drops the
;; search string into history as well as the matched file
;; reverts https://github.com/abo-abo/swiper/commit/334d08c
(defun ivy--update-history (hist)
(let ((item (ivy-state-current ivy-last)))
(cond ((equal item ""))
((stringp item)
(set hist (cons (propertize item 'ivy-index ivy--index)
(delete item (symbol-value hist))))))))
(ivy-mode 1))
(use-package ivy-hydra :ensure)
(defun ivy-backward-delete-char ()