Fix #1456: handle remote PWDs in dashboard

Otherwise, invisible TRAMP authentication prompts would hang Emacs.
This commit is contained in:
Henrik Lissner 2019-06-11 16:21:37 +02:00
parent bc6c4b3e37
commit a1c1d8818a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -209,7 +209,8 @@ If this is the dashboard buffer, reload it completely."
(cond ((+doom-dashboard-p (current-buffer)) (cond ((+doom-dashboard-p (current-buffer))
(let (+doom-dashboard-inhibit-refresh) (let (+doom-dashboard-inhibit-refresh)
(ignore-errors (+doom-dashboard-reload)))) (ignore-errors (+doom-dashboard-reload))))
((doom-real-buffer-p (current-buffer)) ((and (not (file-remote-p default-directory))
(doom-real-buffer-p (current-buffer)))
(setq +doom-dashboard--last-cwd default-directory) (setq +doom-dashboard--last-cwd default-directory)
(+doom-dashboard-update-pwd)))) (+doom-dashboard-update-pwd))))