From 87abaf0781ebbda1b13c439e12f2202b9dca3f12 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 1 Aug 2020 00:30:54 +0200 Subject: [PATCH] Fix goto issues --- pythonx/jedi_vim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonx/jedi_vim.py b/pythonx/jedi_vim.py index 8606d2b..42d3828 100644 --- a/pythonx/jedi_vim.py +++ b/pythonx/jedi_vim.py @@ -394,8 +394,8 @@ def _goto_specific_name(n, options=''): % (n.full_name or n.name)) else: using_tagstack = int(vim_eval('g:jedi#use_tag_stack')) == 1 - module_path = str(n.module_path) - if (module_path or '') != vim.current.buffer.name: + module_path = str(n.module_path or '') + if module_path != vim.current.buffer.name: result = new_buffer(module_path, options=options, using_tagstack=using_tagstack) if not result: