aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2016-05-28 17:16:24 +0200
committerDaniel Hahler <git@thequod.de>2016-05-28 17:16:24 +0200
commit1ea16267648937b839d53dd1ca3306b19632b9d7 (patch)
tree1934c2c64cc45e2589984b408dd32e0a844b36e0
parent48e945e588c1f32b0ae358d674f033328e2696c6 (diff)
downloadrneovim-1ea16267648937b839d53dd1ca3306b19632b9d7.tar.gz
rneovim-1ea16267648937b839d53dd1ca3306b19632b9d7.tar.bz2
rneovim-1ea16267648937b839d53dd1ca3306b19632b9d7.zip
provider/pythonx: use robust comparison (via vint)
-rw-r--r--runtime/autoload/provider/pythonx.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim
index 05815a4896..b2934cd9a3 100644
--- a/runtime/autoload/provider/pythonx.vim
+++ b/runtime/autoload/provider/pythonx.vim
@@ -18,9 +18,9 @@ function! provider#pythonx#Require(host) abort
endfor
try
- let channel_id = rpcstart((ver == '2' ?
+ let channel_id = rpcstart((ver ==# '2' ?
\ provider#python#Prog() : provider#python3#Prog()), args)
- if rpcrequest(channel_id, 'poll') == 'ok'
+ if rpcrequest(channel_id, 'poll') ==# 'ok'
return channel_id
endif
catch
@@ -70,7 +70,7 @@ endfunction
function! s:check_interpreter(prog, major_ver, skip) abort
let prog_path = exepath(a:prog)
- if prog_path == ''
+ if prog_path ==# ''
return [0, a:prog . ' not found in search path or not executable.']
endif