diff options
author | Horacio Sanson <horacio@allm.net> | 2019-05-22 20:19:45 +0900 |
---|---|---|
committer | Horacio Sanson <horacio@allm.net> | 2019-05-22 20:19:45 +0900 |
commit | 2f13c2d26390703c591d756f49cd1207b98f3689 (patch) | |
tree | 4e7d41d46912b13c5a81079f9e3b0729382e9fac /autoload | |
parent | b41836130c9977317ba3f3ebc61daf05fc34f0da (diff) | |
download | ale-2f13c2d26390703c591d756f49cd1207b98f3689.zip |
Add fix to HandleTSServerDiagnostics function.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/lsp_linter.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/lsp_linter.vim b/autoload/ale/lsp_linter.vim index 13471ab7..4f439b28 100644 --- a/autoload/ale/lsp_linter.vim +++ b/autoload/ale/lsp_linter.vim @@ -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) |