diff options
Diffstat (limited to 'ui/ui.go')
-rw-r--r-- | ui/ui.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -19,6 +19,11 @@ type Config struct { AutoComplete func(cursorIdx int, text []rune) []Completion Mouse bool MergeLine func(former *Line, addition Line) + Colors ConfigColors +} + +type ConfigColors struct { + Unread tcell.Color } type UI struct { @@ -84,7 +89,7 @@ func New(config Config) (ui *UI, err error) { close(ui.Events) }() - ui.bs = NewBufferList(ui.config.MergeLine) + ui.bs = NewBufferList(config.Colors, ui.config.MergeLine) ui.e = NewEditor(ui.config.AutoComplete) ui.Resize() |