branch: elpa/go-mode
commit ac6dd8c1f4b969fb93ecb8ac62b0700eeb1b62fd
Author: Kris <[email protected]>
Commit: Peter Sanford <[email protected]>
Fix go-remove-unused-imports
Handle column number output introduced in Go 1.9.
This fixes #221 and fixes #250
Closes: #254 [via git-merge-pr]
---
go-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/go-mode.el b/go-mode.el
index 78a0cd4..a7620e1 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1507,7 +1507,7 @@ It looks for archive files in /pkg/."
(reverse (remove nil
(mapcar
(lambda (line)
- (when (string-match "^\\(.+\\):\\([[:digit:]]+\\):
imported and not used: \".+\".*$" line)
+ (when (string-match
"^\\(.+\\):\\([[:digit:]]+\\):\\([[:digit:]]+\\): imported and not used:
\".+\".*$" line)
(let ((error-file-name (match-string 1 line))
(error-line-num (match-string 2 line)))
(if (string= (file-truename error-file-name)
(file-truename buffer-file-name))