diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-12 02:59:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-12 02:59:29 +0100 |
| commit | 9e9e4431c122f3b98fb0e7498b6572ceac0bca53 (patch) | |
| tree | a28f207390cdbbd27a468537e9065f3b8bfa1cbd /src/nvim/testdir/test_edit.vim | |
| parent | 418947fcb34c46af895994ef9ba10a85d2d4c6c2 (diff) | |
| parent | 7da4d1561bd29615257a3f61073b5cf39f1f7463 (diff) | |
| download | rneovim-9e9e4431c122f3b98fb0e7498b6572ceac0bca53.tar.gz rneovim-9e9e4431c122f3b98fb0e7498b6572ceac0bca53.tar.bz2 rneovim-9e9e4431c122f3b98fb0e7498b6572ceac0bca53.zip | |
Merge #8001 from justinmk/vimpatches
Diffstat (limited to 'src/nvim/testdir/test_edit.vim')
| -rw-r--r-- | src/nvim/testdir/test_edit.vim | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index 0c54becde8..8f815478c2 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -216,14 +216,16 @@ endfunc func! Test_edit_08() throw 'skipped: moved to test/functional/legacy/edit_spec.lua' " 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() @@ -1308,3 +1310,16 @@ func! Test_edit_rightleft() set norightleft bw! endfunc + +func Test_edit_quit() + edit foo.txt + split + new + call setline(1, 'hello') + 3wincmd w + redraw! + call assert_fails('1q', 'E37:') + bwipe! foo.txt + only +endfunc + |