summaryrefslogtreecommitdiff
path: root/autoload/ale/list.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-08 08:39:13 +0100
committerw0rp <devw0rp@gmail.com>2017-08-08 08:39:13 +0100
commita535d07f2897d36dad3b22d28c1c6cd16b7e385e (patch)
treed32ef7e2261be0a1542fb39f1978b90e6f59a520 /autoload/ale/list.vim
parent5010ddc28fdced941925563bbc55f9219dfa4267 (diff)
downloadale-a535d07f2897d36dad3b22d28c1c6cd16b7e385e.zip
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
Diffstat (limited to 'autoload/ale/list.vim')
-rw-r--r--autoload/ale/list.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim
index ae13e10a..1311bef3 100644
--- a/autoload/ale/list.vim
+++ b/autoload/ale/list.vim
@@ -4,7 +4,7 @@
" Return 1 if there is a buffer with buftype == 'quickfix' in bufffer list
function! ale#list#IsQuickfixOpen() abort
for l:buf in range(1, bufnr('$'))
- if getbufvar(l:buf, '&buftype') ==# 'quickfix'
+ if getbufvar(l:buf, '&buftype') is# 'quickfix'
return 1
endif
endfor
@@ -18,7 +18,7 @@ function! s:ShouldOpen(buffer) abort
let l:saved = getbufvar(a:buffer, 'ale_save_event_fired', 0)
return (type(l:val) == type(1) && l:val == 1)
- \ || (type(l:val) == type('') && l:val ==# 'on_save' && l:saved)
+ \ || (type(l:val) == type('') && l:val is# 'on_save' && l:saved)
endfunction
function! ale#list#SetLists(buffer, loclist) abort
@@ -51,8 +51,8 @@ function! ale#list#SetLists(buffer, loclist) abort
if s:ShouldOpen(a:buffer) && (l:keep_open || !empty(a:loclist))
let l:winnr = winnr()
let l:mode = mode()
- let l:reset_visual_selection = l:mode ==? 'v' || l:mode ==# "\<c-v>"
- let l:reset_character_selection = l:mode ==? 's' || l:mode ==# "\<c-s>"
+ let l:reset_visual_selection = l:mode is? 'v' || l:mode is# "\<c-v>"
+ let l:reset_character_selection = l:mode is? 's' || l:mode is# "\<c-s>"
if g:ale_set_quickfix
if !ale#list#IsQuickfixOpen()