Permalink
Browse files

- Deleted setline().

  • Loading branch information...
1 parent e2559a1 commit a8f2b6d991848043b30626b3450ab19de341aef0 @Shougo committed Sep 1, 2011
Showing with 0 additions and 6 deletions.
  1. +0 −6 autoload/neocomplcache/sources/clang_complete.vim
View
6 autoload/neocomplcache/sources/clang_complete.vim
@@ -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

0 comments on commit a8f2b6d

Please sign in to comment.