mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #12883 from janlazo/vim-8.2.1640
vim-patch:8.1.{1296,1297,1298},8.2.{1640,1645,1646,1648,1649,1654,1655,1661}
This commit is contained in:
commit
4d3ef578e9
@ -369,12 +369,11 @@ func Test_invalid_args()
|
||||
endfor
|
||||
|
||||
if has('clientserver')
|
||||
" FIXME: need to add --servername to this list
|
||||
" but it causes vim-8.1.1282 to crash!
|
||||
for opt in ['--remote', '--remote-send', '--remote-silent', '--remote-expr',
|
||||
\ '--remote-tab', '--remote-tab-wait',
|
||||
\ '--remote-tab-wait-silent', '--remote-tab-silent',
|
||||
\ '--remote-wait', '--remote-wait-silent',
|
||||
\ '--servername',
|
||||
\ ]
|
||||
let out = split(system(GetVimCommand() .. ' ' .. opt), "\n")
|
||||
call assert_equal(1, v:shell_error)
|
||||
@ -384,14 +383,21 @@ func Test_invalid_args()
|
||||
endfor
|
||||
endif
|
||||
|
||||
" FIXME: commented out as this causes vim-8.1.1282 to crash!
|
||||
"if has('clipboard')
|
||||
" let out = split(system(GetVimCommand() .. ' --display'), "\n")
|
||||
" call assert_equal(1, v:shell_error)
|
||||
" call assert_match('^VIM - Vi IMproved .* (.*)$', out[0])
|
||||
" call assert_equal('Argument missing after: "--display"', out[1])
|
||||
" call assert_equal('More info with: "vim -h"', out[2])
|
||||
"endif
|
||||
if has('gui_gtk')
|
||||
let out = split(system(GetVimCommand() .. ' --display'), "\n")
|
||||
call assert_equal(1, v:shell_error)
|
||||
call assert_match('^VIM - Vi IMproved .* (.*)$', out[0])
|
||||
call assert_equal('Argument missing after: "--display"', out[1])
|
||||
call assert_equal('More info with: "vim -h"', out[2])
|
||||
endif
|
||||
|
||||
if has('xterm_clipboard')
|
||||
let out = split(system(GetVimCommand() .. ' -display'), "\n")
|
||||
call assert_equal(1, v:shell_error)
|
||||
call assert_match('^VIM - Vi IMproved .* (.*)$', out[0])
|
||||
call assert_equal('Argument missing after: "-display"', out[1])
|
||||
call assert_equal('More info with: "vim -h"', out[2])
|
||||
endif
|
||||
|
||||
let out = split(system(GetVimCommand() .. ' -ix'), "\n")
|
||||
call assert_equal(1, v:shell_error)
|
||||
|
Loading…
Reference in New Issue
Block a user