Skip to content

Commit

Permalink
doautocmd VimspectorJumpedToFrame after cursor moved
Browse files Browse the repository at this point in the history
  • Loading branch information
timsu92 committed Apr 9, 2023
1 parent 657132e commit 242764e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python3/vimspector/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def SetCurrentFrame( self, frame, should_jump_to_location ):
with utils.LetCurrentWindow( self._window ):
try:
utils.OpenFileInCurrentWindow( frame[ 'source' ][ 'path' ] )
vim.command( 'doautocmd <nomodeline> User VimspectorJumpedToFrame' )
except vim.error:
self._logger.exception( 'Unexpected vim error opening file {}'.format(
frame[ 'source' ][ 'path' ] ) )
Expand All @@ -158,6 +157,8 @@ def SetCurrentFrame( self, frame, should_jump_to_location ):

vim.command( 'normal! zv' )

vim.command( 'doautocmd <nomodeline> User VimspectorJumpedToFrame' )

self.current_syntax = utils.ToUnicode(
vim.current.buffer.options[ 'syntax' ] )

Expand Down

0 comments on commit 242764e

Please sign in to comment.