wordcount: prevent use of unused variable
This commit is contained in:
parent
3d9071e6b6
commit
e3cfd3643b
@ -73,11 +73,11 @@ function airline#extensions#wordcount#get()
|
|||||||
if s:visual_active
|
if s:visual_active
|
||||||
return s:format_wordcount(s:get_wordcount(1))
|
return s:format_wordcount(s:get_wordcount(1))
|
||||||
else
|
else
|
||||||
if b:airline_changedtick != b:changedtick
|
if get(b:, 'airline_changedtick', 0) != b:changedtick
|
||||||
call s:update_wordcount(0)
|
call s:update_wordcount(0)
|
||||||
let b:airline_changedtick = b:changedtick
|
let b:airline_changedtick = b:changedtick
|
||||||
endif
|
endif
|
||||||
return b:airline_wordcount
|
return get(b:, 'airline_wordcount', '')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user