[core] fix spacemacs/error-delegate

determine flycheck or emacs error backend using next-error-function instead of
next-error-find-buffer
This commit is contained in:
Thanh Vuong 2019-04-20 21:58:21 -06:00 committed by smile13241324
parent 803d4e7202
commit 02bf928815
1 changed files with 1 additions and 2 deletions

View File

@ -340,8 +340,7 @@ current frame."
Delegates to flycheck if it is enabled and the next-error buffer
is not visible. Otherwise delegates to regular Emacs next-error."
(if (and (bound-and-true-p flycheck-mode)
(let ((buf (ignore-errors (next-error-find-buffer))))
(not (and buf (get-buffer-window buf)))))
(not next-error-function))
'flycheck
'emacs))