From c82a9a92e9f1908f63e6c26f3637a5a126818092 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Mon, 6 Jan 2014 14:53:06 +0200 Subject: [PATCH] Compatibility: bitwise and() has been added in Vim 7.3.377. This reverts commit 5406a3ab3cda97ca029f41b49bb10d6e5699105f. --- autoload/syntastic/log.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/syntastic/log.vim b/autoload/syntastic/log.vim index 8a0a8efc..8b7281ea 100644 --- a/autoload/syntastic/log.vim +++ b/autoload/syntastic/log.vim @@ -130,7 +130,8 @@ endfunction " Private functions {{{1 function! s:isDebugEnabled(level) - return and(g:syntastic_debug, a:level) + " poor man's bit test for bit N, assuming a:level == 2**N + return (g:syntastic_debug / a:level) % 2 endfunction function! s:logRedirect(on)