diff options
author | w0rp <devw0rp@gmail.com> | 2017-10-26 20:29:23 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-26 20:29:33 +0100 |
commit | 3ac92ea529e41fa733647692e40b6ee5c0622e1d (patch) | |
tree | 54518a098d847fa2b142e084d0558c0a3314cc6f /autoload/ale.vim | |
parent | 3ab069c9bd870c1dc469a2f92475abc13d3b9bb9 (diff) | |
download | ale-3ac92ea529e41fa733647692e40b6ee5c0622e1d.zip |
Fix #1048 - Do not lint files named "."
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r-- | autoload/ale.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim index 6500b309..15fb53d9 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -61,6 +61,12 @@ function! ale#ShouldDoNothing(buffer) abort return 1 endif + let l:filename = fnamemodify(bufname(a:buffer), ':t') + + if l:filename is# '.' + return 1 + endif + " Do nothing if running in the sandbox if ale#util#InSandbox() return 1 |