summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2021-07-14 00:13:46 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-07-14 11:17:54 +0200
commit2c7bc6ac7a8adcb591a975fbc3ab3abe47fa99fa (patch)
treefc2d3f60fefd7c1b665a1d82b6202ca322b03767 /window.go
parentAutomatically 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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.go b/window.go
index 3d80776..4e89ee8 100644
--- a/window.go
+++ b/window.go
@@ -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() {