comparison src/testdir/test_eval.in @ 6543:b01ca71f93b2 v7.4.598

updated for version 7.4.598 Problem: ":tabdo windo echo 'hi'" causes "* register not to be changed. (Salman Halim) Solution: Change how clip_did_set_selection is used and add clipboard_needs_update and global_change_count. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 27 Jan 2015 14:09:37 +0100
parents 332a5c2b2956
children 6b86d256fd33
comparison
equal deleted inserted replaced
6542:f52b5c1d7bb0 6543:b01ca71f93b2
1 Test for various eval features. vim: set ft=vim : 1 Test for various eval features. vim: set ft=vim :
2 2
3 Note: system clipboard support is not tested. I do not think anybody will thank 3 Note: system clipboard is saved, changed and restored.
4 me for messing with clipboard.
5 4
6 STARTTEST 5 STARTTEST
7 :so small.vim 6 :so small.vim
8 :set encoding=latin1 7 :set encoding=latin1
9 :set noswapfile 8 :set noswapfile
120 $put ='{{{1 Search and expressions' 119 $put ='{{{1 Search and expressions'
121 call SetReg('/', ['abc/']) 120 call SetReg('/', ['abc/'])
122 call SetReg('/', ["abc/\n"]) 121 call SetReg('/', ["abc/\n"])
123 call SetReg('=', ['"abc/"']) 122 call SetReg('=', ['"abc/"'])
124 call SetReg('=', ["\"abc/\n\""]) 123 call SetReg('=', ["\"abc/\n\""])
125 124 $put ='{{{1 System clipboard'
125 " Save and restore system clipboard.
126 " If no connection to X-Server is possible, test should succeed.
127 :let _clipreg = ['+', getreg('+'), getregtype('+')]
128 :let _clipopt = &cb
129 :let &cb='unnamedplus'
130 :1y
131 :AR +
132 :tabdo :windo :echo "hi"
133 :3y
134 :AR +
135 :let &cb=_clipopt
136 :call call('setreg', _clipreg)
126 $put ='{{{1 Errors' 137 $put ='{{{1 Errors'
127 call ErrExe('call setreg()') 138 call ErrExe('call setreg()')
128 call ErrExe('call setreg(1)') 139 call ErrExe('call setreg(1)')
129 call ErrExe('call setreg(1, 2, 3, 4)') 140 call ErrExe('call setreg(1, 2, 3, 4)')
130 call ErrExe('call setreg([], 2)') 141 call ErrExe('call setreg([], 2)')