From 81dc04c3cf24f8716dc6d37d6e1031df03f47468 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 20 Dec 2013 23:23:35 +0100 Subject: [PATCH] FIX: Correct order of tab and window restore commands. The tabpage and window arguments given to s:jump_to_window() refer to the current values, so when inserting into the session file, first the tabpage, then the window (in that tabpage) have to be restored. --- autoload/xolox/session.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/xolox/session.vim b/autoload/xolox/session.vim index 07bd270..5fccaba 100644 --- a/autoload/xolox/session.vim +++ b/autoload/xolox/session.vim @@ -356,10 +356,10 @@ function! s:check_special_window(session) endfunction function! s:jump_to_window(session, tabpage, window) + call add(a:session, a:window . 'wincmd w') if xolox#session#include_tabs() call add(a:session, 'tabnext ' . a:tabpage) endif - call add(a:session, a:window . 'wincmd w') endfunction function! s:nerdtree_persist()