Open
Description
Highlighting fails in windows because the file system paths contain backslashes.
When you match the path from g:coveragepy_session_map
against the absolute path of the current buffer, it will always return 0 because of the way backslashes behave in regex patterns.
To fix this, I changed the pattern like this: let path_pattern = '\M' . substitute(path, '\\', '\\\\', 'g')
Doubling the backslashes will make the pattern work as expected.
I only tested on Windows, but I don't see any reason why it wouldn't work on *nix systems as well.
Metadata
Metadata
Assignees
Labels
No labels