Skip to content

Commit

Permalink
Catch E325 in neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Jan 19, 2020
1 parent 6cf4f9f commit 5ee8ffc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autoload/vimspector/internal/neojob.vim
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ function! s:_OnCommandEvent( category, id, data, event ) abort
let buffer = s:commands[ a:category ][ a:id ].stderr
endif

call bufload( buffer )
try
call bufload( buffer )
catch /E325/
" Ignore E325/ATTENTION
endtry


let numlines = py3eval( "len( vim.buffers[ int( vim.eval( 'buffer' ) ) ] )" )
let last_line = getbufline( buffer, '$' )[ 0 ]
Expand Down

0 comments on commit 5ee8ffc

Please sign in to comment.