diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index 4c8564d3..650ad1b3 100644 --- a/python/ycm/vimsupport.py +++ b/python/ycm/vimsupport.py @@ -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 )