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

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

No files matched your search

+3 -1
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: