branch: elpa/helm commit 92053773c74cad8a23f1826645f7fac7df27a558 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Simplify minibuffer insertion --- helm-files.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/helm-files.el b/helm-files.el index c235fab03a..970cdd1fde 100644 --- a/helm-files.el +++ b/helm-files.el @@ -5676,10 +5676,7 @@ source is `helm-source-find-files'." :filtered-candidate-transformer 'helm-adaptive-sort :action (lambda (candidate) (with-selected-window (minibuffer-window) - (goto-char (point-max)) - (when (re-search-backward "/" nil t) - (delete-region (match-end 0) (point-max)) - (forward-char 1)) + (delete-minibuffer-contents) (bookmark-insert-location candidate)))) :buffer "*helm bookmark insert*" :allow-nest t)))