diff options
author | delthas <delthas@dille.cc> | 2021-07-14 00:13:46 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-07-14 11:17:54 +0200 |
commit | 2c7bc6ac7a8adcb591a975fbc3ab3abe47fa99fa (patch) | |
tree | fc2d3f60fefd7c1b665a1d82b6202ca322b03767 /window.go | |
parent | Automatically join channels on start (diff) |
Add notify types for fine-grained control of unread/highlight state
Namely, we want the unread light to show up only on actual messages, not
commands etc.
This opens the way for not showing an unread light when printing topic
on join.
Diffstat (limited to 'window.go')
-rw-r--r-- | window.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,7 +15,7 @@ const welcomeMessage = "senpai dev build. See senpai(1) for a list of keybinding func (app *App) initWindow() { app.win.AddBuffer(Home) - app.win.AddLine(Home, false, ui.Line{ + app.win.AddLine(Home, ui.NotifyNone, ui.Line{ Head: "--", Body: ui.PlainString(welcomeMessage), At: time.Now(), @@ -35,9 +35,9 @@ func (app *App) queueStatusLine(line ui.Line) { func (app *App) addStatusLine(line ui.Line) { buffer := app.win.CurrentBuffer() if buffer != Home { - app.win.AddLine(Home, false, line) + app.win.AddLine(Home, ui.NotifyNone, line) } - app.win.AddLine(buffer, false, line) + app.win.AddLine(buffer, ui.NotifyNone, line) } func (app *App) setStatus() { |