Skip to content

Commit

Permalink
show_goto_multi_results: handle full_name=None
Browse files Browse the repository at this point in the history
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
  • Loading branch information
blueyed authored and davidhalter committed Feb 27, 2020
1 parent 8d24b83 commit 055199f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pythonx/jedi_vim.py
Expand Up @@ -460,7 +460,10 @@ def show_goto_multi_results(definitions, mode):
# Build qflist title.
qf_title = mode
if current_def is not None:
qf_title += ": " + current_def.full_name
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
Expand Down

0 comments on commit 055199f

Please sign in to comment.