Skip to content

Commit a3ba9f6

Browse files
committed
Switch order of :colorscheme, :set background= commands (issue #6)
1 parent cbb9a3b commit a3ba9f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/xolox/session.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
22
" Author: Peter Odding
3-
" Last Change: September 4, 2011
3+
" Last Change: September 17, 2011
44
" URL: http://peterodding.com/code/vim/session/
55

6-
let g:xolox#session#version = '1.4.12'
6+
let g:xolox#session#version = '1.4.13'
77

88
" Public API for session persistence. {{{1
99

@@ -45,8 +45,8 @@ endfunction
4545
function! xolox#session#save_colors(commands) " {{{2
4646
if exists('g:colors_name') && type(g:colors_name) == type('') && g:colors_name != ''
4747
let template = "if !exists('g:colors_name') || g:colors_name != %s | colorscheme %s | endif"
48-
call add(a:commands, printf(template, string(g:colors_name), fnameescape(g:colors_name)))
4948
call add(a:commands, 'set background=' . &background)
49+
call add(a:commands, printf(template, string(g:colors_name), fnameescape(g:colors_name)))
5050
endif
5151
endfunction
5252

0 commit comments

Comments
 (0)