Fix InsertNamespace

ReplaceChunk must have changed to require the buffer at some point
This commit is contained in:
dhleong 2016-10-31 17:00:45 -04:00
parent c895f09375
commit 62a815275f

View File

@ -851,7 +851,7 @@ def InsertNamespace( namespace ):
existing_indent = re.sub( r"\S.*", "", existing_line )
new_line = "{0}using {1};\n\n".format( existing_indent, namespace )
replace_pos = { 'line_num': line + 1, 'column_num': 1 }
ReplaceChunk( replace_pos, replace_pos, new_line, 0, 0 )
ReplaceChunk( replace_pos, replace_pos, new_line, 0, 0, vim.current.buffer )
PostVimMessage( 'Add namespace: {0}'.format( namespace ), warning = False )