Fix InsertNamespace
ReplaceChunk must have changed to require the buffer at some point
This commit is contained in:
parent
c895f09375
commit
62a815275f
@ -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 )
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user