From 7fa437985fda31328dc23973a38fc9007b528c2b Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 14 Sep 2016 11:47:52 +0100 Subject: Fix issues with switching buffers rapidly causing errors by remembering the buffer and passing the buffer value to various functions. --- ale_linters/javascript/eslint.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ale_linters/javascript/eslint.vim') diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim index 8eafd8a7..96dfef9b 100644 --- a/ale_linters/javascript/eslint.vim +++ b/ale_linters/javascript/eslint.vim @@ -4,7 +4,7 @@ endif let g:loaded_ale_linters_javascript_eslint = 1 -function! ale_linters#javascript#eslint#Handle(lines) +function! ale_linters#javascript#eslint#Handle(buffer, lines) " Matches patterns line the following: " " :47:14: Missing trailing comma. [Warning/comma-dangle] @@ -29,7 +29,7 @@ function! ale_linters#javascript#eslint#Handle(lines) " vcol is Needed to indicate that the column is a character. call add(output, { - \ 'bufnr': bufnr('%'), + \ 'bufnr': a:buffer, \ 'lnum': l:match[1] + 0, \ 'vcol': 0, \ 'col': l:match[2] + 0, -- cgit v1.2.3