Skip to content

Commit

Permalink
feat: add more condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
尼诺 committed Nov 22, 2023
1 parent 1d1b8cc commit 31ae94f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/gui/pty.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ func (gui *Gui) onResize() error {
func (gui *Gui) newPtyTask(view *gocui.View, cmd *exec.Cmd, prefix string) error {
width, _ := gui.Views.Main.Size()
pager := gui.git.Config.GetPager(width)
externalDiffCommand := gui.Config.GetUserConfig().Git.Paging.ExternalDiffCommand

if pager == "" {
if pager == "" && externalDiffCommand == "" {
// if we're not using a custom pager we don't need to use a pty
return gui.newCmdTask(view, cmd, prefix)
}
Expand Down

0 comments on commit 31ae94f

Please sign in to comment.