Permalink
Browse files

- Fixed completion words.

  • Loading branch information...
Shougo committed Sep 1, 2011
1 parent 89bc06d commit e2559a1024189b0d59f55d488bbbc726129cc3f9
View
@@ -0,0 +1 @@
+*.pyc
@@ -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
Binary file not shown.

0 comments on commit e2559a1

Please sign in to comment.