rename: fix _tabnew to go to the correct window

This commit is contained in:
Daniel Hahler
2015-05-02 16:42:28 +02:00
parent afb84a837c
commit bf281dabda

View File

@@ -577,6 +577,8 @@ def _tabnew(path, options=''):
if buf_path == path: if buf_path == path:
# tab exists, just switch to that tab # tab exists, just switch to that tab
vim_command('tabfirst | tabnext %i' % (tab_nr + 1)) vim_command('tabfirst | tabnext %i' % (tab_nr + 1))
# Goto the buffer's window.
vim_command('exec bufwinnr(%i) . " wincmd w"' % (buf_nr + 1))
break break
else: else:
continue continue