Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Fixed error when use clang binary.

  • Loading branch information...
commit ae6340b94021e3db2cc449b46c7690bd8474bb78 1 parent f77d32a
@Shougo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 autoload/neocomplcache/sources/clang_complete.vim
View
6 autoload/neocomplcache/sources/clang_complete.vim
@@ -258,13 +258,13 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)
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)
+ let l:clang_output = s:complete_from_clang_binary(a:cur_keyword_pos, a:cur_keyword_str)
endif
return l:clang_output
endfunction
-function! s:complete_from_clang_binary(cur_keyword_pos)
+function! s:complete_from_clang_binary(cur_keyword_pos, cur_keyword_str)
let l:buf = getline(1, '$')
let l:tempfile = expand('%:p:h') . '/' . localtime() . expand('%:t')
if neocomplcache#is_win()
@@ -283,7 +283,7 @@ function! s:complete_from_clang_binary(cur_keyword_pos)
call delete(l:tempfile)
- let l:filter_str = "v:val =~ '^COMPLETION: " . a:base . "\\|^OVERLOAD: '"
+ let l:filter_str = "v:val =~ '^COMPLETION: " . a:cur_keyword_str . "\\|^OVERLOAD: '"
call filter(l:clang_output, l:filter_str)
let l:res = []
Please sign in to comment.
Something went wrong with that request. Please try again.