From 62a815275fea51ac551a435f32a1e3811e787c41 Mon Sep 17 00:00:00 2001 From: dhleong Date: Mon, 31 Oct 2016 17:00:45 -0400 Subject: [PATCH] Fix InsertNamespace ReplaceChunk must have changed to require the buffer at some point --- python/ycm/vimsupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )