comparison src/testdir/test_paste.vim @ 17686:853afcc375b2 v8.1.1840

patch 8.1.1840: Testing: WorkingClipboard() is not accurate commit https://github.com/vim/vim/commit/52992feafe8a996fbce29b97ae135abc169aa716 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 12 14:20:33 2019 +0200 patch 8.1.1840: Testing: WorkingClipboard() is not accurate Problem: Testing: WorkingClipboard() is not accurate. Solution: Check feature clipboard_working instead.
author Bram Moolenaar <Bram@vim.org>
date Mon, 12 Aug 2019 14:30:06 +0200
parents 0da9bc55c31a
children 505d97ea54da
comparison
equal deleted inserted replaced
17685:118242d58076 17686:853afcc375b2
68 set ai& et& tw=0 68 set ai& et& tw=0
69 bwipe! 69 bwipe!
70 endfunc 70 endfunc
71 71
72 func Test_paste_clipboard() 72 func Test_paste_clipboard()
73 if !WorkingClipboard() 73 CheckFeature clipboard_working
74 return 74
75 endif
76 let @+ = "nasty\<Esc>:!ls\<CR>command" 75 let @+ = "nasty\<Esc>:!ls\<CR>command"
77 new 76 new
78 exe "normal i\<C-R>+\<Esc>" 77 exe "normal i\<C-R>+\<Esc>"
79 call assert_equal("nasty\<Esc>:!ls\<CR>command", getline(1)) 78 call assert_equal("nasty\<Esc>:!ls\<CR>command", getline(1))
80 bwipe! 79 bwipe!