diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-01 21:00:44 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-04 00:12:23 +1100 |
commit | 54241d8ab9cc36abd084ec5124b73869d4ad6143 (patch) | |
tree | 3b6e56f6a0529077e8229b92902979d36c54f9ae /pkg/gui/tasks_adapter.go | |
parent | 355f1615aba5b0b75485596fee0ae93d054081d4 (diff) |
more generic way of supporting custom pagers
Diffstat (limited to 'pkg/gui/tasks_adapter.go')
-rw-r--r-- | pkg/gui/tasks_adapter.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/gui/tasks_adapter.go b/pkg/gui/tasks_adapter.go index 38d7ce36b..fc2b0a3bf 100644 --- a/pkg/gui/tasks_adapter.go +++ b/pkg/gui/tasks_adapter.go @@ -28,10 +28,7 @@ func (gui *Gui) newCmdTask(viewName string, cmd *exec.Cmd) error { func (gui *Gui) newPtyTask(viewName string, cmd *exec.Cmd) error { width, _ := gui.getMainView().Size() - pager, err := gui.GitCommand.GetPager(width) - if err != nil { - return err - } + pager := gui.GitCommand.GetPager(width) if pager == "" { // if we're not using a custom pager we don't need to use a pty |