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:
parent
aa1129eee0
commit
b18ccaaa29
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue