comparison src/testdir/test_undo.vim @ 12779:73eb8a2d7f04 v8.0.1267

patch 8.0.1267: Test_swap_group may leave file behind commit https://github.com/vim/vim/commit/5842a748be8039fd6d267f5557fe391c6c95399d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 4 22:36:53 2017 +0100 patch 8.0.1267: Test_swap_group may leave file behind Problem: Test_swap_group may leave file behind. Solution: Add a try/finally.
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Nov 2017 22:45:06 +0100
parents aa658b33f25a
children ff494a964ab7
comparison
equal deleted inserted replaced
12778:77a183c386a5 12779:73eb8a2d7f04
188 call assert_equal('second line', getline(2)) 188 call assert_equal('second line', getline(2))
189 bwipe! 189 bwipe!
190 endfunc 190 endfunc
191 191
192 func Test_undo_write() 192 func Test_undo_write()
193 call delete('Xtest')
193 split Xtest 194 split Xtest
194 call feedkeys("ione one one\<Esc>", 'xt') 195 call feedkeys("ione one one\<Esc>", 'xt')
195 w! 196 w!
196 call feedkeys("otwo\<Esc>", 'xt') 197 call feedkeys("otwo\<Esc>", 'xt')
197 call feedkeys("otwo\<Esc>", 'xt') 198 call feedkeys("otwo\<Esc>", 'xt')