diff options
Diffstat (limited to 'window.go')
-rw-r--r-- | window.go | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -44,6 +44,16 @@ func (app *App) addStatusLine(netID string, line ui.Line) { app.win.AddLine(netID, "", line) } +func (app *App) addTemporaryStatusLine(netID string, line ui.Line) { + currentNetID, buffer := app.win.CurrentBuffer() + if currentNetID == netID && buffer != "" { + currentLine := line + currentLine.Temporary = true + app.win.AddLine(netID, buffer, currentLine) + } + app.win.AddLine(netID, "", line) +} + func (app *App) setStatus() { netID, buffer := app.win.CurrentBuffer() s := app.sessions[netID] @@ -53,11 +63,11 @@ func (app *App) setStatus() { ts := s.Typings(buffer) status := "" if 3 < len(ts) { - status = "several people are typing..." + status = "several people are typing…" } else { - verb := " is typing..." + verb := " is typing…" if 1 < len(ts) { - verb = " are typing..." + verb = " are typing…" status = strings.Join(ts[:len(ts)-1], ", ") + " and " } if 0 < len(ts) { |