diff --git a/eaf.el b/eaf.el index 1ab9a82..83944f3 100644 --- a/eaf.el +++ b/eaf.el @@ -961,7 +961,8 @@ For now only EAF browser app is supported." (set-process-sentinel eaf-process #'(lambda (process event) - (when (string-prefix-p "exited abnormally with code" event) + (when (or (string-prefix-p "exited abnormally with code" event) + (string-match "finished" event)) (switch-to-buffer eaf-name)) (message "[EAF] %s %s" process (replace-regexp-in-string "\n$" "" event)))) (message "[EAF] Process starting..."))