From ae6572dde66d4a61a1df209bc0cb4b8a2c544277 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Sat, 5 Jun 2021 12:10:45 +0100 Subject: [PATCH] Make sure the buffer is not marked modified --- python3/vimspector/code.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python3/vimspector/code.py b/python3/vimspector/code.py index 7e33407..9d1e37b 100644 --- a/python3/vimspector/code.py +++ b/python3/vimspector/code.py @@ -307,14 +307,14 @@ class CodeView( object ): # TODO: The data is encoded in base64, so we need to convert that to the # equivalent output of say xxd data = msg.get( 'body', {} ).get( 'data', '' ) - utils.SetBufferContents( buf, utils.Base64ToHexDump( data ) ) - buf[ 0:0 ] = [ + utils.SetBufferContents( buf, [ f'Memory Dump for Reference {memoryReference} Length: {length} bytes', '-' * 80, 'Offset Bytes Text', - ] + '-' * 80, + ] ) + utils.AppendToBuffer( buf, utils.Base64ToHexDump( data ) ) utils.SetSyntax( '', 'xxd', buf ) - utils.JumpToWindow( self._window ) utils.OpenFileInCurrentWindow( buf_name )