summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 39f936c..8fb6227 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -148,7 +148,7 @@ func (ui *UI) IsAtTop() bool {
return ui.bs.IsAtTop()
}
-func (ui *UI) AddBuffer(title string) int {
+func (ui *UI) AddBuffer(title string) (i int, added bool) {
return ui.bs.Add(title)
}
@@ -161,8 +161,8 @@ func (ui *UI) AddLine(buffer string, notify NotifyType, line Line) {
ui.bs.AddLine(buffer, notify, line)
}
-func (ui *UI) AddLines(buffer string, lines []Line) {
- ui.bs.AddLines(buffer, lines)
+func (ui *UI) AddLines(buffer string, before, after []Line) {
+ ui.bs.AddLines(buffer, before, after)
}
func (ui *UI) JumpBuffer(sub string) bool {