Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Deleted setline().

  • Loading branch information...
commit a8f2b6d991848043b30626b3450ab19de341aef0 1 parent e2559a1
@Shougo authored
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,10 +257,6 @@ 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)
@@ -268,8 +264,6 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)
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
Please sign in to comment.
Something went wrong with that request. Please try again.