Fix next-error behavior when flycheck is active

spacemacs/{next,previous}-error will now call {next,previous}-error when
a compilation buffer is visible.
This commit is contained in:
Dennis Hamester 2016-04-07 09:44:36 +02:00 committed by syl20bnr
parent aa1129eee0
commit b18ccaaa29
1 changed files with 4 additions and 2 deletions

View File

@ -602,7 +602,8 @@ current window."
"Dispatch to flycheck or standard emacs error."
(interactive "P")
(if (and (boundp 'flycheck-mode)
(symbol-value flycheck-mode))
(symbol-value flycheck-mode)
(not (get-buffer-window "*compilation*")))
(call-interactively 'flycheck-next-error)
(call-interactively 'next-error)))
@ -610,7 +611,8 @@ current window."
"Dispatch to flycheck or standard emacs error."
(interactive "P")
(if (and (boundp 'flycheck-mode)
(symbol-value flycheck-mode))
(symbol-value flycheck-mode)
(not (get-buffer-window "*compilation*")))
(call-interactively 'flycheck-previous-error)
(call-interactively 'previous-error)))