From a06030436d3940dddfba37b344f90651366d67e1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 7 Dec 2009 19:51:21 -0500 Subject: [PATCH] Don't run pager for commands that may need a tty (e.g. for editor) --- be | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/be b/be index f026c05..18692a4 100755 --- a/be +++ b/be @@ -64,12 +64,13 @@ if options.version == True or options.verbose_version == True: print version.version(verbose=options.verbose_version) sys.exit(0) -paginate = 'auto' -if options.paginate == True: - paginate = 'always' -if options.no_pager== True: - paginate = 'never' -pager.run_pager(paginate) +if len(args) > 0 and args[0] not in ['comment', 'commit']: + paginate = 'auto' + if options.paginate == True: + paginate = 'always' + if options.no_pager== True: + paginate = 'never' + pager.run_pager(paginate) try: if len(args) == 0: -- 2.26.2