More work on porting diff kitten

This commit is contained in:
Kovid Goyal
2023-03-20 18:15:18 +05:30
parent 1c7d1094d4
commit 648925e83a
3 changed files with 21 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ func (self *Handler) initialize() {
self.lp.SetDefaultColor(loop.CURSOR, conf.Foreground)
self.lp.SetDefaultColor(loop.BACKGROUND, conf.Background)
self.lp.SetDefaultColor(loop.SELECTION_BG, conf.Select_bg)
if !conf.Select_fg.IsNull {
if conf.Select_fg.IsSet {
self.lp.SetDefaultColor(loop.SELECTION_FG, conf.Select_fg.Color)
}
self.async_results = make(chan AsyncResult, 32)