summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-02-13 11:02:51 +0000
committerGitHub <noreply@github.com>2017-02-13 11:02:51 +0000
commitf9815fcdef28e3c9325c23ec1b0d586c256fc1f1 (patch)
tree5d6e9b187bd3168a74e5063146d09c0668204e57
parent5cdd1498b459403c7e54a4dd45f2f14b97969544 (diff)
parenta2f59049dc4123b44631d198b94924c5ab47664a (diff)
downloadale-f9815fcdef28e3c9325c23ec1b0d586c256fc1f1.zip
Merge pull request #336 from ninjawithaneedle/master
Highlighting should not filter linter messages without column info
-rw-r--r--autoload/ale/highlight.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/highlight.vim b/autoload/ale/highlight.vim
index 348226ea..b57931f6 100644
--- a/autoload/ale/highlight.vim
+++ b/autoload/ale/highlight.vim
@@ -63,8 +63,9 @@ function! ale#highlight#SetHighlights(buffer, loclist) abort
" we next open it.
"
" We'll filter the loclist down to items we can set now.
+ let temp_loclist = deepcopy(a:loclist)
let s:buffer_highlights[a:buffer] = filter(
- \ a:loclist,
+ \ temp_loclist,
\ 'v:val.bufnr == a:buffer && v:val.col > 0'
\)