Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion autoload/xolox/session.vim
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ function! xolox#session#open_cmd(name, bang, command) abort " {{{2
call s:lock_session(path)
execute 'source' fnameescape(path)
if xolox#session#is_tab_scoped()
call s:lock_session(path) " Retroactively (this is only known after the session has been loaded) add the tabpage to the lock.
let t:session_old_cwd = oldcwd
let session_type = 'tab scoped'
else
Expand Down Expand Up @@ -1022,7 +1023,7 @@ function! s:vim_instance_id()
if !empty(v:servername)
let id['servername'] = v:servername
endif
if !xolox#session#include_tabs()
if !xolox#session#include_tabs() || xolox#session#is_tab_scoped()
let id['tabpage'] = tabpagenr()
endif
return id
Expand Down