summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-04 23:50:11 +0100
committerw0rp <devw0rp@gmail.com>2017-05-04 23:50:11 +0100
commit14f3fc777fc4a5e1fd1e1a7b75f4edf84b0a9af0 (patch)
treef99964071787e2f4542eb0d652ead7825554a221 /autoload
parentc2a0847f997f70cf529f46ad80e4d2d4283fd7b6 (diff)
downloadale-14f3fc777fc4a5e1fd1e1a7b75f4edf84b0a9af0.zip
#427 Implement b:ale_warn_about_trailing_whitespace
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/handlers/python.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/handlers/python.vim b/autoload/ale/handlers/python.vim
index 02f9758a..85e2f203 100644
--- a/autoload/ale/handlers/python.vim
+++ b/autoload/ale/handlers/python.vim
@@ -15,7 +15,7 @@ function! ale#handlers#python#HandlePEP8Format(buffer, lines) abort
let l:code = l:match[3]
if (l:code ==# 'W291' || l:code ==# 'W293' || l:code ==# 'EANSIBLE002')
- \ && !g:ale_warn_about_trailing_whitespace
+ \ && !ale#Var(a:buffer, 'warn_about_trailing_whitespace')
" Skip warnings for trailing whitespace if the option is off.
continue
endif