diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-28 11:46:08 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-28 11:46:08 -0400 |
commit | 17868444985d8e22ac8373250a9996989be57a6c (patch) | |
tree | 1934c2c64cc45e2589984b408dd32e0a844b36e0 | |
parent | 48e945e588c1f32b0ae358d674f033328e2696c6 (diff) | |
parent | 1ea16267648937b839d53dd1ca3306b19632b9d7 (diff) | |
download | rneovim-17868444985d8e22ac8373250a9996989be57a6c.tar.gz rneovim-17868444985d8e22ac8373250a9996989be57a6c.tar.bz2 rneovim-17868444985d8e22ac8373250a9996989be57a6c.zip |
Merge pull request #4831 from blueyed/provider-pythonx-robust-comparison
provider/pythonx: use robust comparison (via vint)
-rw-r--r-- | runtime/autoload/provider/pythonx.vim | 6 |
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 |