From 9c235c79acd351af19543f4f0e380030a1c2fb14 Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Sat, 22 Aug 2015 17:41:25 -0700 Subject: [PATCH] Fix hidden check again --- jedi_vim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi_vim.py b/jedi_vim.py index eb5fd29..c92b7f1 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -601,8 +601,6 @@ def new_buffer(path, options='', using_tagstack=False): print('g:jedi#use_splits_not_buffers value is not correct, valid options are: %s' % ','.join(split_options.keys())) else: vim_command(split_options[user_split_option] + " %s" % path) - elif using_tagstack: - return True else: if vim_eval("!&hidden && &modified") == '1': if vim_eval("bufname('%')") is None: @@ -610,6 +608,8 @@ def new_buffer(path, options='', using_tagstack=False): return False else: vim_command('w') + if using_tagstack: + return True vim_command('edit %s %s' % (options, escape_file_path(path))) # sometimes syntax is being disabled and the filetype not set. if vim_eval('!exists("g:syntax_on")') == '1':