Check result 1 for confirm

This commit is contained in:
Yasuhiro Matsumoto
2020-10-16 00:27:17 +09:00
parent 57fa5eb0df
commit c4109508ed

View File

@@ -313,7 +313,7 @@ function! s:vim_lsp_install_server(ft, command, bang) abort
call lsp_settings#utils#error('Server not found')
return
endif
if empty(a:bang) && confirm(printf('Install %s ?', l:entry[0]), "&Yes\n&Cancel") ==# 2
if empty(a:bang) && confirm(printf('Install %s ?', l:entry[0]), "&Yes\n&Cancel") !=# 1
return
endif
let l:server_install_dir = lsp_settings#servers_dir() . '/' . l:entry[0]