Commit 42b00dd9 authored by Aborn Jiang's avatar Aborn Jiang

fix error You’re not in a project bug

parent a0285039
......@@ -1176,8 +1176,12 @@ Return nil if DIR is not an existing directory."
(defun neo-get-unsaved-buffers-from-projectile ()
"Return list of unsaved buffers from projectile buffers."
(let ((rlist '()))
(when (fboundp 'projectile-project-buffers)
(let ((rlist '())
(rtag t))
(condition-case nil
(error (setq rtag nil)))
(when (and rtag (fboundp 'projectile-project-buffers))
(dolist (buf (projectile-project-buffers))
(with-current-buffer buf
(if (and (buffer-modified-p) buffer-file-name)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment