mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #1456: handle remote PWDs in dashboard
Otherwise, invisible TRAMP authentication prompts would hang Emacs.
This commit is contained in:
@ -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))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user