Skip to content

Commit

Permalink
- Deleted setline().
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 1, 2011
1 parent e2559a1 commit a8f2b6d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions autoload/neocomplcache/sources/clang_complete.vim
Expand Up @@ -257,19 +257,13 @@ function! s:source.get_keyword_pos(cur_text)
endfunction

function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)
let l:cur_text = neocomplcache#get_cur_text()
let l:line = getline('.')
call setline('.', l:cur_text)

if g:neocomplcache_clang_use_library
python vim.command('let l:clang_output = ' + str(getCurrentCompletions(vim.eval('a:cur_keyword_str'), int(vim.eval('a:cur_keyword_pos+1')))))
" echomsg string(l:clang_output)
else
let l:clang_output = s:complete_from_clang_binary(a:cur_keyword_pos, a:cur_keyword_str)
endif

call setline('.', l:line)

return l:clang_output
endfunction

Expand Down

0 comments on commit a8f2b6d

Please sign in to comment.