diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 88eb204e..78ad7129 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -821,7 +821,7 @@ function! s:SetUpCommands() command! -nargs=* -complete=custom,youcompleteme#LogsComplete \ YcmToggleLogs call s:ToggleLogs() command! -nargs=* -complete=custom,youcompleteme#SubCommandsComplete -range - \ YcmCompleter call s:CompleterCommand(, + \ YcmCompleter call s:CompleterCommand(, \ , \ , \ ) @@ -863,7 +863,7 @@ function! youcompleteme#LogsComplete( arglead, cmdline, cursorpos ) endfunction -function! s:CompleterCommand( range, line1, line2, ... ) +function! s:CompleterCommand( count, line1, line2, ... ) " CompleterCommand will call the OnUserCommand function of a completer. If " the first arguments is of the form "ft=..." it can be used to specify the " completer to use (for example "ft=cpp"). Else the native filetype completer @@ -884,7 +884,7 @@ function! s:CompleterCommand( range, line1, line2, ... ) exec s:python_command "ycm_state.SendCommandRequest(" . \ "vim.eval( 'l:arguments' )," . \ "vim.eval( 'l:completer' )," . - \ "vimsupport.GetBoolValue( 'a:range' )," . + \ "vimsupport.GetBoolValue( 'a:count != -1' )," . \ "vimsupport.GetIntValue( 'a:line1' )," . \ "vimsupport.GetIntValue( 'a:line2' ) )" endfunction