Skip to content

Commit

Permalink
Revert "Avoid calling callbacks twice"
Browse files Browse the repository at this point in the history
This reverts commit 993d6e6.

It seems to break the tests and some functionality and I don't have the
time right now to debug it properly.
  • Loading branch information
vimpostor committed Aug 8, 2023
1 parent 08f7cf4 commit 0b4674e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions autoload/lumen.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
let s:background = ""

func lumen#init()
if !exists('g:lumen_startup_overwrite')
let g:lumen_startup_overwrite = 1
Expand All @@ -20,24 +18,14 @@ func lumen#init()
endfunc

func lumen#light_hook()
if s:background == 'light' && &background == s:background
return
endif

set background=light
let s:background = &background
if exists('#User#LumenLight')
doautocmd User LumenLight
endif
endfunc

func lumen#dark_hook()
if s:background == 'dark' && &background == s:background
return
endif

set background=dark
let s:background = &background
if exists('#User#LumenDark')
doautocmd User LumenDark
endif
Expand Down

0 comments on commit 0b4674e

Please sign in to comment.