Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[READY] Remove s:GetCompletions function #2513

Merged
merged 1 commit into from
Jan 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 2 additions & 7 deletions autoload/youcompleteme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -715,11 +715,6 @@ function! s:InvokeCompletion()
endfunction


function! s:GetCompletions()
return s:Pyeval( 'ycm_state.GetCompletions()' )
endfunction


" This is our main entry point. This is what vim calls to get completions.
function! youcompleteme#Complete( findstart, base )
" After the user types one character after the call to the omnifunc, the
Expand All @@ -746,7 +741,7 @@ function! youcompleteme#Complete( findstart, base )
exec s:python_command "ycm_state.CreateCompletionRequest()"
return s:Pyeval( 'base.CompletionStartColumn()' )
else
return s:GetCompletions()
return s:Pyeval( 'ycm_state.GetCompletions()' )
endif
endfunction

Expand All @@ -761,7 +756,7 @@ function! youcompleteme#OmniComplete( findstart, base )
\ "force_semantic = True )"
return s:Pyeval( 'base.CompletionStartColumn()' )
else
return s:GetCompletions()
return s:Pyeval( 'ycm_state.GetCompletions()' )
endif
endfunction

Expand Down