Addressed review comments and fixed tests
This commit is contained in:
parent
74951adcc7
commit
9c93244d3b
@ -1262,6 +1262,8 @@ def WriteToPreviewWindow_test( vim_current, vim_command ):
|
|||||||
call( 'modifiable', True ),
|
call( 'modifiable', True ),
|
||||||
call( 'readonly', False ),
|
call( 'readonly', False ),
|
||||||
call( 'buftype', 'nofile' ),
|
call( 'buftype', 'nofile' ),
|
||||||
|
call( 'bufhidden', 'wipe' ),
|
||||||
|
call( 'buflisted', False ),
|
||||||
call( 'swapfile', False ),
|
call( 'swapfile', False ),
|
||||||
call( 'modifiable', False ),
|
call( 'modifiable', False ),
|
||||||
call( 'modified', False ),
|
call( 'modified', False ),
|
||||||
|
@ -928,6 +928,8 @@ def WriteToPreviewWindow( message ):
|
|||||||
vim.current.buffer[:] = message.splitlines()
|
vim.current.buffer[:] = message.splitlines()
|
||||||
|
|
||||||
vim.current.buffer.options[ 'buftype' ] = 'nofile'
|
vim.current.buffer.options[ 'buftype' ] = 'nofile'
|
||||||
|
vim.current.buffer.options[ 'bufhidden' ] = 'wipe'
|
||||||
|
vim.current.buffer.options[ 'buflisted' ] = False
|
||||||
vim.current.buffer.options[ 'swapfile' ] = False
|
vim.current.buffer.options[ 'swapfile' ] = False
|
||||||
vim.current.buffer.options[ 'modifiable' ] = False
|
vim.current.buffer.options[ 'modifiable' ] = False
|
||||||
vim.current.buffer.options[ 'readonly' ] = True
|
vim.current.buffer.options[ 'readonly' ] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user