forked from aniani/vim
patch 8.1.1840: Testing: WorkingClipboard() is not accurate
Problem: Testing: WorkingClipboard() is not accurate. Solution: Check feature clipboard_working instead.
This commit is contained in:
@@ -322,13 +322,3 @@ func RunVimPiped(before, after, arguments, pipecmd)
|
|||||||
endif
|
endif
|
||||||
return 1
|
return 1
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func WorkingClipboard()
|
|
||||||
if !has('clipboard')
|
|
||||||
return 0
|
|
||||||
endif
|
|
||||||
if has('x11')
|
|
||||||
return $DISPLAY != ""
|
|
||||||
endif
|
|
||||||
return 1
|
|
||||||
endfunc
|
|
||||||
|
@@ -70,9 +70,8 @@ func Test_paste_insert_mode()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_paste_clipboard()
|
func Test_paste_clipboard()
|
||||||
if !WorkingClipboard()
|
CheckFeature clipboard_working
|
||||||
return
|
|
||||||
endif
|
|
||||||
let @+ = "nasty\<Esc>:!ls\<CR>command"
|
let @+ = "nasty\<Esc>:!ls\<CR>command"
|
||||||
new
|
new
|
||||||
exe "normal i\<C-R>+\<Esc>"
|
exe "normal i\<C-R>+\<Esc>"
|
||||||
|
@@ -1,11 +1,9 @@
|
|||||||
" *-register (quotestar) tests
|
" *-register (quotestar) tests
|
||||||
|
|
||||||
source shared.vim
|
source shared.vim
|
||||||
if !WorkingClipboard()
|
source check.vim
|
||||||
throw 'Skipped: no working clipboard'
|
|
||||||
endif
|
|
||||||
|
|
||||||
source shared.vim
|
CheckFeature clipboard_working
|
||||||
|
|
||||||
func Do_test_quotestar_for_macunix()
|
func Do_test_quotestar_for_macunix()
|
||||||
if empty(exepath('pbcopy')) || empty(exepath('pbpaste'))
|
if empty(exepath('pbcopy')) || empty(exepath('pbpaste'))
|
||||||
|
@@ -182,9 +182,7 @@ func Test_xterm_mouse_ctrl_click()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_term_mouse_middle_click()
|
func Test_term_mouse_middle_click()
|
||||||
if !WorkingClipboard()
|
CheckFeature clipboard_working
|
||||||
throw 'Skipped: No working clipboard'
|
|
||||||
endif
|
|
||||||
|
|
||||||
new
|
new
|
||||||
let save_mouse = &mouse
|
let save_mouse = &mouse
|
||||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1840,
|
||||||
/**/
|
/**/
|
||||||
1839,
|
1839,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user