File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,37 +20,37 @@ func lumen#init()
2020 augroup END
2121endfunc
2222
23- func lumen#apply_colorscheme (mode )
23+ func lumen#apply_colorscheme ()
2424 " apply colorscheme from g:lumen_light_colorscheme/g:lumen_dark_colorscheme
25- let v = get (g: , printf (" lumen_%s_colorscheme" , a: mode ), ' ' )
25+ let v = get (g: , printf (" lumen_%s_colorscheme" , s: background ), ' ' )
2626 if len (v ) && get (g: , ' colors_name' , ' ' ) != v
2727 exe printf (" colorscheme %s" , v )
2828 endif
2929endfunc
3030
3131func lumen#light_hook ()
32- call lumen#apply_colorscheme (' light' )
33-
3432 if s: background == ' light' && &background == s: background
3533 return
3634 endif
3735
36+
3837 set background = light
3938 let s: background = &background
39+ call lumen#apply_colorscheme ()
4040 if exists (' #User#LumenLight' )
4141 doautocmd User LumenLight
4242 endif
4343endfunc
4444
4545func lumen#dark_hook ()
46- call lumen#apply_colorscheme (' dark' )
47-
4846 if s: background == ' dark' && &background == s: background
4947 return
5048 endif
5149
50+
5251 set background = dark
5352 let s: background = &background
53+ call lumen#apply_colorscheme ()
5454 if exists (' #User#LumenDark' )
5555 doautocmd User LumenDark
5656 endif
You can’t perform that action at this time.
0 commit comments