diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-31 20:58:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-31 20:58:36 +0200 |
| commit | f793c578bc409be65b755c35d347b8c60f777eed (patch) | |
| tree | de788d46cd03138f759f31f26cdc4b7130226263 /src/nvim/testdir/test_python2.vim | |
| parent | 157034bd6ce48e7138171627713672ccdea730aa (diff) | |
| parent | 13f4d4fb6e10ca59a93b1e7ebb56215891b80c2e (diff) | |
| download | rneovim-f793c578bc409be65b755c35d347b8c60f777eed.tar.gz rneovim-f793c578bc409be65b755c35d347b8c60f777eed.tar.bz2 rneovim-f793c578bc409be65b755c35d347b8c60f777eed.zip | |
Merge #9822 from janlazo/vim-8.1.1073
vim-patch:8.1.{1073,1074,1082,1087}
Diffstat (limited to 'src/nvim/testdir/test_python2.vim')
| -rw-r--r-- | src/nvim/testdir/test_python2.vim | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_python2.vim b/src/nvim/testdir/test_python2.vim index 448785db6d..0c5809f7a4 100644 --- a/src/nvim/testdir/test_python2.vim +++ b/src/nvim/testdir/test_python2.vim @@ -70,32 +70,37 @@ func _SetUpHiddenBuffer() call assert_equal( line( '.' ), 11 ) endfunc +func _CleanUpHiddenBuffer() + bwipe! hidden + bwipe! +endfunc + func Test_Write_To_HiddenBuffer_Does_Not_Fix_Cursor_Clear() call _SetUpHiddenBuffer() py vim.buffers[ int( vim.eval( 'bufnr("hidden")' ) ) ][:] = None call assert_equal( line( '.' ), 11 ) - bwipe! + call _CleanUpHiddenBuffer() endfunc func Test_Write_To_HiddenBuffer_Does_Not_Fix_Cursor_List() call _SetUpHiddenBuffer() py vim.buffers[ int( vim.eval( 'bufnr("hidden")' ) ) ][:] = [ 'test' ] call assert_equal( line( '.' ), 11 ) - bwipe! + call _CleanUpHiddenBuffer() endfunc func Test_Write_To_HiddenBuffer_Does_Not_Fix_Cursor_Str() call _SetUpHiddenBuffer() py vim.buffers[ int( vim.eval( 'bufnr("hidden")' ) ) ][0] = 'test' call assert_equal( line( '.' ), 11 ) - bwipe! + call _CleanUpHiddenBuffer() endfunc func Test_Write_To_HiddenBuffer_Does_Not_Fix_Cursor_ClearLine() call _SetUpHiddenBuffer() py vim.buffers[ int( vim.eval( 'bufnr("hidden")' ) ) ][0] = None call assert_equal( line( '.' ), 11 ) - bwipe! + call _CleanUpHiddenBuffer() endfunc func _SetUpVisibleBuffer() |