From f9db2316308d93d7b2b7999ce1171081545e2f44 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 5 Feb 2019 15:22:24 +0900 Subject: [PATCH] Fix bug --- emacs.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/emacs.el b/emacs.el index 0210abb..d46d069 100644 --- a/emacs.el +++ b/emacs.el @@ -2071,7 +2071,7 @@ initializing." (goto-char (point-min)) (when (re-search-forward "^would reformat .*$" nil t) (setq result (list (flycheck-error-new-at - (point-max) + (point-min) nil 'error ;;(format "Black: %s" (match-string 0)) @@ -2080,14 +2080,14 @@ initializing." :checker checker)))) (goto-char (point-min)) (when (re-search-forward "^error: .*$" nil t) - (setq reslt (list (flycheck-error-new-at - (point-max) - nil - 'error - ;; Fix not to include absolute file path - (format "Black: %s" (match-string 0)) - :buffer buffer - :checker checker)))))) + (setq result (list (flycheck-error-new-at + (point-min) + nil + 'error + ;; Fix not to include absolute file path + (format "Black: %s" (match-string 0)) + :buffer buffer + :checker checker)))))) result)) (defun my-flycheck-parse-unified-diff (output checker buffer)