summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index b911c215..b9cd648f 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -113,5 +113,5 @@ endfunction
function! ale#Var(buffer, variable_name) abort
let l:full_name = 'ale_' . a:variable_name
- return getbufvar(a:buffer, l:full_name, g:[l:full_name])
+ return getbufvar(str2nr(a:buffer), l:full_name, g:[l:full_name])
endfunction