Browse Source

ui: context of more than 1 now works

Benton Edmondson 1 year ago
parent
commit
cb05c2e2fc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ui/ui.go

+ 3 - 3
ui/ui.go

@@ -45,8 +45,8 @@ func (s *State) View(width int, height uint) string {
 			if top != "" { top += "\n" }
 			top += ansi.Indent(serialized + "\n│", "  ", true)
 		} else {
-			if bottom != "" { bottom = "\n" + bottom }
-			bottom = ansi.Indent("│\n" + serialized, "  ", true) + bottom
+			if bottom != "" { bottom += "\n" }
+			bottom += ansi.Indent("│\n" + serialized, "  ", true)
 		}
 	}
 	log.Printf("%s\n", center)
@@ -108,7 +108,7 @@ func Start(input string) *State {
 	s := &State{
 		feed: &feed.Feed{},
 		index: 0,
-		context: 1,
+		context: 3,
 	}
 	s.SwitchTo(item)
 	return s