summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkg/gui/pty.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/pty.go b/pkg/gui/pty.go
index fe53697c8..3f59373b7 100644
--- a/pkg/gui/pty.go
+++ b/pkg/gui/pty.go
@@ -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)
}