Add neovim job/terminal APIs
This commit is contained in:
parent
18627b9244
commit
29c26996fb
5 changed files with 237 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ class OutputView( object ):
|
|||
vim.command( 'bdelete! {0}'.format( tab_buffer.buf.number ) )
|
||||
except vim.error as e:
|
||||
# FIXME: For now just ignore the "no buffers were deleted" error
|
||||
if 'E516' not in e:
|
||||
if 'E516' not in str( e ):
|
||||
raise
|
||||
|
||||
self._buffers = {}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ def SetUpHiddenBuffer( buf, name ):
|
|||
def SetUpPromptBuffer( buf, name, prompt, callback, hidden=False ):
|
||||
# This feature is _super_ new, so only enable when available
|
||||
if not int( vim.eval( "exists( '*prompt_setprompt' )" ) ):
|
||||
return SetUpScratchBuffer( buf, name )
|
||||
return SetUpHiddenBuffer( buf, name )
|
||||
|
||||
buf.options[ 'buftype' ] = 'prompt'
|
||||
buf.options[ 'swapfile' ] = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue