Problem: Testing: WorkingClipboard() is not accurate.
Solution: Check feature clipboard_working instead.
endif
return 1
endfunc
-
-func WorkingClipboard()
- if !has('clipboard')
- return 0
- endif
- if has('x11')
- return $DISPLAY != ""
- endif
- return 1
-endfunc
endfunc
func Test_paste_clipboard()
- if !WorkingClipboard()
- return
- endif
+ CheckFeature clipboard_working
+
let @+ = "nasty\<Esc>:!ls\<CR>command"
new
exe "normal i\<C-R>+\<Esc>"
" *-register (quotestar) tests
source shared.vim
-if !WorkingClipboard()
- throw 'Skipped: no working clipboard'
-endif
+source check.vim
-source shared.vim
+CheckFeature clipboard_working
func Do_test_quotestar_for_macunix()
if empty(exepath('pbcopy')) || empty(exepath('pbpaste'))
endfunc
func Test_term_mouse_middle_click()
- if !WorkingClipboard()
- throw 'Skipped: No working clipboard'
- endif
+ CheckFeature clipboard_working
new
let save_mouse = &mouse
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1840,
/**/
1839,
/**/