denite: correctly test denite version

references #1918
This commit is contained in:
Christian Brabandt 2019-05-14 16:31:52 +02:00
parent 03f63eb666
commit 7b20361baf
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ if !get(g:, 'loaded_denite', 0)
finish
endif
let s:denite_ver = (exists('*get_status_mode') ? 2 : 3)
let s:denite_ver = (exists('*denite#get_status_mode') ? 2 : 3)
" Denite does not use vim's built-in modal editing but has a custom prompt
" that implements its own insert/normal mode so we have to handle changing the
" highlight