From 2f13c2d26390703c591d756f49cd1207b98f3689 Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Wed, 22 May 2019 20:19:45 +0900 Subject: [PATCH] Add fix to HandleTSServerDiagnostics function. --- autoload/ale/lsp_linter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)