Skip to content
Browse files

- Fixed completion words.

  • Loading branch information...
1 parent 89bc06d commit e2559a1024189b0d59f55d488bbbc726129cc3f9 @Shougo committed Sep 1, 2011
View
1 .gitignore
@@ -0,0 +1 @@
+*.pyc
View
6 autoload/neocomplcache/sources/clang_complete.vim
@@ -257,13 +257,19 @@ 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
View
BIN autoload/neocomplcache/sources/clang_complete/clang/__init__.pyc
Binary file not shown.
View
BIN autoload/neocomplcache/sources/clang_complete/clang/cindex.pyc
Binary file not shown.

0 comments on commit e2559a1

Please sign in to comment.
Something went wrong with that request. Please try again.