From bf281dabda414c6dabd58fd5d754c0ecef9f5d2a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 2 May 2015 16:42:28 +0200 Subject: [PATCH] rename: fix _tabnew to go to the correct window --- jedi_vim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jedi_vim.py b/jedi_vim.py index 31015b5..84436cd 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -577,6 +577,8 @@ def _tabnew(path, options=''): if buf_path == path: # tab exists, just switch to that tab vim_command('tabfirst | tabnext %i' % (tab_nr + 1)) + # Goto the buffer's window. + vim_command('exec bufwinnr(%i) . " wincmd w"' % (buf_nr + 1)) break else: continue