Permalink
Browse files

- Improved argument.

  • Loading branch information...
1 parent d03707c commit f62f949c8ed0d40b51277239c6a78c76bbf313fb @Shougo committed Jul 16, 2011
@@ -255,7 +255,7 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)
endif
if g:neocomplcache_clang_complete_use_library
- python vim.command('let l:clang_output = ' + str(getCurrentCompletions(vim.eval('a:cur_keyword_str'), vim.eval('a:cur_keyword_pos+1'))))
+ python vim.command('let l:clang_output = ' + str(getCurrentCompletions(int(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)
@@ -191,7 +191,7 @@ def getCurrentCompletionResults(line, column):
return cr
def completeCurrentAt(line, column):
- print "\n".join(map(str, getCurrentCompletionResults().results))
+ print "\n".join(map(str, getCurrentCompletionResults(line, column).results))
def formatChunkForWord(chunk):
return chunk.spelling

0 comments on commit f62f949

Please sign in to comment.