Optimise spacemacs/last-error further
Noticed that I have used if instead of when and added an obsolete progn.
This commit is contained in:
parent
e74fc70de8
commit
5fdb89d61d
|
@ -374,10 +374,9 @@ is not visible. Otherwise delegates to regular Emacs next-error."
|
|||
(defun spacemacs/last-error ()
|
||||
"Go to last flycheck or standard emacs error."
|
||||
(interactive)
|
||||
(if (save-excursion (spacemacs/next-error))
|
||||
(progn
|
||||
(evil-goto-line)
|
||||
(spacemacs/previous-error))))
|
||||
(when (save-excursion (spacemacs/next-error))
|
||||
(evil-goto-line)
|
||||
(spacemacs/previous-error)))
|
||||
|
||||
(defun spacemacs/previous-error (&optional n reset)
|
||||
"Dispatch to flycheck or standard emacs error."
|
||||
|
|
Loading…
Reference in New Issue