From 8c1f0178ed92039fbb800ceb5650867e5f535d95 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 4 Oct 2016 14:50:07 +0100 Subject: [PATCH] Get the filename for buffers in a way that NeoVim will like. --- plugin/ale/zmain.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim index 3cfe28d..347a1de 100644 --- a/plugin/ale/zmain.vim +++ b/plugin/ale/zmain.vim @@ -157,7 +157,7 @@ function! s:ApplyLinter(buffer, linter) if command =~# '%s' " If there is a '%s' in the command string, replace it with the name " of the file. - let command = printf(command, shellescape(getbufinfo(a:buffer)[0].name)) + let command = printf(command, shellescape(fnamemodify(bufname(a:buffer), ':p'))) endif if has('nvim')