summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-04 14:50:07 +0100
committerw0rp <devw0rp@gmail.com>2016-10-04 14:50:07 +0100
commit8c1f0178ed92039fbb800ceb5650867e5f535d95 (patch)
tree07b77ebd2d4009b6655ff71da7c47cc931e26117 /plugin
parent705f4232c0920a7d1e3f4b70f06fc982015a43d7 (diff)
downloadale-8c1f0178ed92039fbb800ceb5650867e5f535d95.zip
Get the filename for buffers in a way that NeoVim will like.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale/zmain.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim
index 3cfe28db..347a1dee 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')