From: W. Trevor King Date: Tue, 8 Dec 2009 00:51:21 +0000 (-0500) Subject: Don't run pager for commands that may need a tty (e.g. for editor) X-Git-Tag: 1.0.0~59^2~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a06030436d3940dddfba37b344f90651366d67e1;p=be.git Don't run pager for commands that may need a tty (e.g. for editor) --- 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: