show_func_def raised errors again (#3), almost fixes #9

This commit is contained in:
David Halter
2012-10-16 09:42:25 +02:00
parent d1844c45a1
commit 1e3e8e1aec
3 changed files with 5 additions and 3 deletions

View File

@@ -162,8 +162,10 @@ def clear_func_def():
vim.current.window.cursor = cursor
def show_func_def(call_def, completion_lines=0):
def show_func_def(call_def=None, completion_lines=0):
try:
if call_def == None:
call_def = get_script().get_in_function_call()
clear_func_def()
if call_def is None: