From a1c1d8818a17d37d0f0ebf6d10a0a875d52a360a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 11 Jun 2019 16:21:37 +0200 Subject: [PATCH] Fix #1456: handle remote PWDs in dashboard Otherwise, invisible TRAMP authentication prompts would hang Emacs. --- modules/ui/doom-dashboard/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 05559e0c4..a03fe95f4 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -209,7 +209,8 @@ If this is the dashboard buffer, reload it completely." (cond ((+doom-dashboard-p (current-buffer)) (let (+doom-dashboard-inhibit-refresh) (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) (+doom-dashboard-update-pwd))))