show_goto_multi_results: handle full_name=None

Seen with `<Definition name='key', description='param key'>` (using
usages on an function argument) [1].

1: https://github.com/pytest-dev/py/blob/2b6bd2925/py/_vendored_packages/iniconfig.py#L32-L33
This commit is contained in:
Daniel Hahler
2020-02-25 03:09:59 +01:00
committed by Dave Halter
parent 8d24b83754
commit 055199f2aa

View File

@@ -460,7 +460,10 @@ def show_goto_multi_results(definitions, mode):
# Build qflist title.
qf_title = mode
if current_def is not None:
if current_def.full_name:
qf_title += ": " + current_def.full_name
else:
qf_title += ": " + str(current_def)
select_entry = current_idx
else:
select_entry = 0