mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Do not use shellescape for escaping strings in execute-commands.
This commit is contained in:
committed by
mattn
parent
d965f232e5
commit
c99252b814
@@ -400,10 +400,10 @@ function! s:vim_lsp_install_server(ft, command, bang) abort
|
||||
call lsp_settings#utils#msg('Installing ' . l:entry[0])
|
||||
if has('nvim')
|
||||
split new
|
||||
call termopen(shellescape(l:entry[1]), {'cwd': l:server_install_dir, 'on_exit': function('s:vim_lsp_install_server_post', [l:entry[0]])}) | startinsert
|
||||
call termopen(lsp_settings#utils#shellescape(l:entry[1]), {'cwd': l:server_install_dir, 'on_exit': function('s:vim_lsp_install_server_post', [l:entry[0]])}) | startinsert
|
||||
else
|
||||
if has('win32')
|
||||
let l:bufnr = term_start(shellescape(l:entry[1]), {'cwd': l:server_install_dir})
|
||||
let l:bufnr = term_start(lsp_settings#utils#shellescape(l:entry[1]), {'cwd': l:server_install_dir})
|
||||
else
|
||||
let l:bufnr = term_start(l:entry[1], {'cwd': l:server_install_dir})
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user