Fix regression: void function helm-current-directory on C-x C-f

Invoking C-x C-f (spacemacs/helm-find-files) right after startup, before helm is
loaded, caused a void function error for helm-current-directory. This fixes it.
This commit is contained in:
bmag 2018-09-06 10:57:27 +03:00
parent 534785ad3d
commit 044237139b
1 changed files with 2 additions and 0 deletions

View File

@ -504,6 +504,8 @@ If DEFAULT-INPUTP is non nil then the current region or symbol at point
"Custom spacemacs implementation for calling helm-find-files-1.
Removes the automatic guessing of the initial value based on thing at point. "
(interactive "P")
;; fixes #10882 and #11270
(require 'helm-files)
(let* ((hist (and arg helm-ff-history (helm-find-files-history)))
(default-input hist)
(input (cond ((and (eq major-mode 'dired-mode) default-input)