Mark unread output with *; Show vimspector log in output view
This commit is contained in:
parent
1ca88ad332
commit
463f7a8220
4 changed files with 129 additions and 37 deletions
|
|
@ -64,18 +64,14 @@ class CodeView( object ):
|
|||
|
||||
vim.current.window = self._window
|
||||
|
||||
buffer_number = int( vim.eval( 'bufnr( "{0}", 1 )'.format(
|
||||
frame[ 'source' ][ 'path' ] ) ) )
|
||||
|
||||
try:
|
||||
vim.command( 'bu {0}'.format( buffer_number ) )
|
||||
self._window.cursor = ( frame[ 'line' ], frame[ 'column' ] )
|
||||
except vim.error as e:
|
||||
if 'E325' not in str( e ):
|
||||
self._logger.exception(
|
||||
'Unexpected error from vim: loading buffer {}'.format(
|
||||
buffer_number ) )
|
||||
return False
|
||||
utils.OpenFileInCurrentWindow( frame[ 'source' ][ 'path' ] )
|
||||
except vim.error:
|
||||
self._logger.exception( 'Unexpected vim error opening file {}'.format(
|
||||
frame[ 'source' ][ 'path' ] ) )
|
||||
return False
|
||||
|
||||
self._window.cursor = ( frame[ 'line' ], frame[ 'column' ] )
|
||||
|
||||
self._signs[ 'vimspectorPC' ] = self._next_sign_id
|
||||
self._next_sign_id += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue