Skip to content

Commit

Permalink
FIX: Correct order of tab and window restore commands.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
inkarkat committed Dec 20, 2013
1 parent a55318b commit 81dc04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/xolox/session.vim
Expand Up @@ -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()
Expand Down

0 comments on commit 81dc04c

Please sign in to comment.