summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-05-24 01:21:02 +0100
committerGitHub <noreply@github.com>2019-05-24 01:21:02 +0100
commitbb08b81bf719d4c55669c583c65fbe4bbd795501 (patch)
tree4a8360cf2bd1ff5bf816106bc0cccf7436cd3c76 /autoload
parent1a9b8a58c7e01f0926e51b39b7b37f932537cc0c (diff)
parent36c35d840ba90c5069eb514d54a1281d42c3fb26 (diff)
downloadale-bb08b81bf719d4c55669c583c65fbe4bbd795501.zip
Merge pull request #2524 from hsanson/2521-fix-lsp-diagnostics-buffer-match
WIP Fix HandleLSPDiagnostics buffer match logic.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/lsp_linter.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/lsp_linter.vim b/autoload/ale/lsp_linter.vim
index f70042dd..4f439b28 100644
--- a/autoload/ale/lsp_linter.vim
+++ b/autoload/ale/lsp_linter.vim
@@ -31,7 +31,7 @@ endfunction
function! s:HandleLSPDiagnostics(conn_id, response) abort
let l:linter_name = s:lsp_linter_map[a:conn_id]
let l:filename = ale#path#FromURI(a:response.params.uri)
- let l:buffer = bufnr(l:filename)
+ let l:buffer = bufnr('^' . l:filename . '$')
let l:info = get(g:ale_buffer_info, l:buffer, {})
if empty(l:info)
@@ -49,7 +49,7 @@ endfunction
function! s:HandleTSServerDiagnostics(response, error_type) abort
let l:linter_name = 'tsserver'
- let l:buffer = bufnr(a:response.body.file)
+ let l:buffer = bufnr('^' . a:response.body.file . '$')
let l:info = get(g:ale_buffer_info, l:buffer, {})
if empty(l:info)