From 715ec7fbe868f63a873c0b647e77f7bc10664124 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sat, 3 Dec 2022 18:22:58 -0800 Subject: [PATCH] Clear screen when starting pager --- internal/pager/pager.go | 2 +- internal/repos/pull.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/pager/pager.go b/internal/pager/pager.go index 8f782b9..b4d792f 100644 --- a/internal/pager/pager.go +++ b/internal/pager/pager.go @@ -56,7 +56,7 @@ type pagerModel struct { } func (pm pagerModel) Init() tea.Cmd { - return nil + return tea.ClearScreen } func (pm pagerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { diff --git a/internal/repos/pull.go b/internal/repos/pull.go index 771fcb7..018c117 100644 --- a/internal/repos/pull.go +++ b/internal/repos/pull.go @@ -3,7 +3,6 @@ package repos import ( "context" "errors" - "fmt" "io" "net/url" "os"