From 120093f3ed3ac60042c3072f7b8780d8df745667 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 23 May 2020 15:39:01 -0400 Subject: [PATCH] Remove hacky counsel-find-file workaround, as a fix was merged upstream --- .emacs.d/init.el | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 8f30d5d..500ce74 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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 ()