From d1e3b648d32a07e8fd2dc210267f44b85937174f Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Wed, 8 Jan 2020 14:00:05 +0000 Subject: [PATCH] Use eval for lists of buffers too --- python3/vimspector/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python3/vimspector/utils.py b/python3/vimspector/utils.py index 6fea1c5..79c8c67 100644 --- a/python3/vimspector/utils.py +++ b/python3/vimspector/utils.py @@ -57,19 +57,19 @@ def OpenFileInCurrentWindow( file_name ): def SetUpCommandBuffer( cmd, name ): - bufs = vim.bindeval( + bufs = vim.eval( 'vimspector#internal#job#StartCommandWithLog( {}, "{}" )'.format( json.dumps( cmd ), name ) ) if bufs is None: raise RuntimeError( "Unable to start job {}: {}".format( cmd, name ) ) - elif not all( b > 0 for b in bufs ): + elif not all( int( b ) > 0 for b in bufs ): raise RuntimeError( "Unable to get all streams for job {}: {}".format( name, cmd ) ) - return [ vim.buffers[ b ] for b in bufs ] + return [ vim.buffers[ int( b ) ] for b in bufs ] def CleanUpCommand( name ):