From 8eabf580add160da8d6765794e831177783c3efb Mon Sep 17 00:00:00 2001 From: dhleong Date: Thu, 3 Nov 2016 13:47:26 -0400 Subject: [PATCH] Rename argument --- python/ycm/vimsupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index ef793ffd..876a0e3a 100644 --- a/python/ycm/vimsupport.py +++ b/python/ycm/vimsupport.py @@ -863,9 +863,9 @@ def SearchInCurrentBuffer( pattern ): return GetIntValue( "search('{0}', 'Wcnb')".format( EscapeForVim( pattern ))) -def LineTextInCurrentBuffer( line ): +def LineTextInCurrentBuffer( line_number ): """ Returns the text on the 1-indexed line (NOT 0-indexed) """ - return vim.current.buffer[ line - 1 ] + return vim.current.buffer[ line_number - 1 ] def ClosePreviewWindow():