diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-27 01:35:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-27 01:35:00 +0200 |
commit | 2a45d64d0a7ab28d77eee277244e76dbbf8c2db8 (patch) | |
tree | 221caa93ee894b89d8792f16759a4a636a4a875c /src/testdir/test_edit.vim | |
parent | ee03b941241eae1d36bc29b84eec09116cefe7cd (diff) | |
download | vim-2a45d64d0a7ab28d77eee277244e76dbbf8c2db8.zip |
patch 8.0.1226: edit and popup tests failing
Problem: Edit and popup tests failing.
Solution: Make the tests pass.
Diffstat (limited to 'src/testdir/test_edit.vim')
-rw-r--r-- | src/testdir/test_edit.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index bb3af2710..f857516e8 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -215,14 +215,16 @@ endfunc func! Test_edit_08() " reset insertmode from i_ctrl-r_= + let g:bufnr = bufnr('%') new call setline(1, ['abc']) call cursor(1, 4) - call feedkeys(":set im\<cr>ZZZ\<c-r>=setbufvar(1,'&im', 0)\<cr>",'tnix') + call feedkeys(":set im\<cr>ZZZ\<c-r>=setbufvar(g:bufnr,'&im', 0)\<cr>",'tnix') call assert_equal(['abZZZc'], getline(1,'$')) call assert_equal([0, 1, 1, 0], getpos('.')) call assert_false(0, '&im') bw! + unlet g:bufnr endfunc func! Test_edit_09() |