| @@ -2066,8 +2066,8 @@ initializing." | |||||
| "Flycheck parser to check if reformat is required." | "Flycheck parser to check if reformat is required." | ||||
| (with-temp-buffer | (with-temp-buffer | ||||
| (insert output) | (insert output) | ||||
| (goto-char (point-min)) | |||||
| (save-match-data | (save-match-data | ||||
| (goto-char (point-min)) | |||||
| (when (re-search-forward "^would reformat .*$" nil t) | (when (re-search-forward "^would reformat .*$" nil t) | ||||
| (list (flycheck-error-new-at | (list (flycheck-error-new-at | ||||
| (point-min) | (point-min) | ||||
| @@ -2077,6 +2077,7 @@ initializing." | |||||
| "Black: would be reformatted" | "Black: would be reformatted" | ||||
| :buffer buffer | :buffer buffer | ||||
| :checker checker))) | :checker checker))) | ||||
| (goto-char (point-min)) | |||||
| (when (re-search-forward "^error: cannot format .*$" nil t) | (when (re-search-forward "^error: cannot format .*$" nil t) | ||||
| (list (flycheck-error-new-at | (list (flycheck-error-new-at | ||||
| (point-min) | (point-min) | ||||