From 79e8bf5f0c0bd83d7d1b883d67f3e9972e7092ea Mon Sep 17 00:00:00 2001 From: Eugene Androsov Date: Mon, 26 Oct 2020 09:25:17 +0200 Subject: [PATCH] Fix paths for windows users --- revgrep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revgrep.go b/revgrep.go index 3650d64..ac8904b 100644 --- a/revgrep.go +++ b/revgrep.go @@ -108,7 +108,7 @@ func (c *Checker) Prepare() error { // IsNewIssue checks whether issue found by linter is new: it was found in changed lines func (c Checker) IsNewIssue(i InputIssue) (hunkPos int, isNew bool) { - fchanges, ok := c.changes[i.FilePath()] + fchanges, ok := c.changes[filepath.ToSlash(i.FilePath())] if !ok { // file wasn't changed return 0, false }