mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
vim-patch:8.0.0507: client-server tests fail when $DISPLAY is not set
Problem: Client-server tests fail when $DISPLAY is not set.
Solution: Check for E240 before running the test.
a2845b8f5a
This commit is contained in:
parent
f711b63513
commit
bce3e95691
@ -39,6 +39,15 @@ func Do_test_quotestar_for_x11()
|
||||
if cmd == ''
|
||||
return 'GetVimCommand() failed'
|
||||
endif
|
||||
try
|
||||
call remote_send('xxx', '')
|
||||
catch
|
||||
if v:exception =~ 'E240:'
|
||||
" No connection to the X server, give up.
|
||||
return
|
||||
endif
|
||||
" ignore other errors
|
||||
endtry
|
||||
|
||||
let name = 'XVIMCLIPBOARD'
|
||||
let cmd .= ' --servername ' . name
|
||||
|
Loading…
Reference in New Issue
Block a user