Skip to content

Commit

Permalink
had fallback when bg is not set (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
narajaon authored Aug 23, 2021
1 parent d3f158f commit 670b593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/onestatus.vim
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ endfun
fun s:getDefaultColor() abort
let s:fg = synIDattr(synIDtrans(hlID('Normal')), 'fg#')
let s:bg = synIDattr(synIDtrans(hlID('Normal')), 'bg#')
let s:attrs = {'isStyleOnly': v:true, 'fg': s:fg, 'bg': s:bg}
let s:attrs = {'isStyleOnly': v:true, 'fg': s:fg, 'bg': (len(s:bg) == 0 ? 'default' : s:bg)}
return [s:attrs]
endfun

Expand Down

0 comments on commit 670b593

Please sign in to comment.