Skip to content

Commit 3635adb

Browse files
committed
Remember the 'background' setting
I love the Earendel color scheme, amongst other things because it looks great on light as well as dark backgrounds. During the day I use a light background color and in the evening/night I switch to a dark background color so as not to strain my eyes. What always really annoyed me is that the session plug-in wouldn't remember this setting. Now it will! :-)
1 parent 6855a81 commit 3635adb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

autoload/xolox/session.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ 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"
4848
call add(a:commands, printf(template, string(g:colors_name), fnameescape(g:colors_name)))
49+
call add(a:commands, 'set background=' . &background)
4950
endif
5051
endfunction
5152

plugin/session.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Author: Peter Odding
33
" Last Change: May 26, 2011
44
" URL: http://peterodding.com/code/vim/session/
5-
" Version: 1.4.2
5+
" Version: 1.4.3
66

77
" Support for automatic update using the GLVS plug-in.
88
" GetLatestVimScripts: 3150 1 :AutoInstall: session.zip

0 commit comments

Comments
 (0)