Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pyeval() is too recent.

  • Loading branch information...
commit 5d25e3bc19f26bf65bd601bccd12b637a4998861 1 parent 14150f9
@Rip-Rip authored
Showing with 6 additions and 6 deletions.
  1. +2 −3 plugin/clang_complete.vim
  2. +4 −3 plugin/libclang.py
View
5 plugin/clang_complete.vim
@@ -612,9 +612,8 @@ function! ClangComplete(findstart, base)
if g:clang_use_library == 1
python thread = getThread(vim.current.buffer.name)
- let l:str = 'tryComplete(thread,' . b:col . ', str(' . a:base . '))'
- let l:shouldRetry = pyeval('tryComplete(thread,' . b:col . ', "' . a:base . '")')
- if l:shouldRetry
+ python vim.command('let l:shouldRetry = ' + str(tryComplete(thread, vim.eval('b:col'), vim.eval("a:base"))))
+ if l:shouldRetry == 1
return []
endif
View
7 plugin/libclang.py
@@ -512,11 +512,12 @@ def WarmupCache():
def tryComplete(t, column, base):
state = t.getCompletionState()
+ column = int(column)
if state == CompleteThread.STATE_FINISHED and column == t.column:
- return False
+ return 0
if state == CompleteThread.STATE_RUNNING:
- return True
+ return 1
if not t.is_alive():
t.start()
@@ -531,7 +532,7 @@ def tryComplete(t, column, base):
t.timer.start(vim.current.buffer.name, line, column, t.args, t.cwd)
t.event.set()
- return True
+ return 1
def getCurrentCompletions(t):
timer = t.timer
Please sign in to comment.
Something went wrong with that request. Please try again.