Use the same version as the current macvim

This commit is contained in:
Ben Jackson 2019-06-01 15:04:53 +01:00
commit d458d06bc5
12 changed files with 733 additions and 4 deletions

View file

@ -70,7 +70,8 @@ class CodeView( object ):
frame[ 'source' ][ 'path' ] ) )
return False
self._window.cursor = ( frame[ 'line' ], frame[ 'column' ] )
# SIC: column is 0-based, line is 1-based in vim. Why? Nobody knows.
self._window.cursor = ( frame[ 'line' ], frame[ 'column' ] - 1 )
self._signs[ 'vimspectorPC' ] = self._next_sign_id
self._next_sign_id += 1

View file

@ -213,6 +213,7 @@ def UserMessage( msg, persist=False ):
cmd = 'echom' if persist else 'echo'
for line in msg.split( '\n' ):
vim.command( "{0} '{1}'".format( cmd, Escape( line ) ) )
vim.command( 'redraw' )
@contextlib.contextmanager