[Bps-public-commit] Prophet branch, master, updated. d042d2c2946d2f7b6d1d96d663d401313824179b

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Aug 13 04:57:58 EDT 2009


The branch, master has been updated
       via  d042d2c2946d2f7b6d1d96d663d401313824179b (commit)
      from  113da1f7b009729f2c7e6ae9c3ade7f65b6e3b42 (commit)

Summary of changes:
 lib/Prophet/CLI.pm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit d042d2c2946d2f7b6d1d96d663d401313824179b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Aug 13 16:57:48 2009 +0800

    no -FXe args for more on windows

diff --git a/lib/Prophet/CLI.pm b/lib/Prophet/CLI.pm
index 8e814a4..d04085b 100644
--- a/lib/Prophet/CLI.pm
+++ b/lib/Prophet/CLI.pm
@@ -158,8 +158,9 @@ sub start_pager {
     my $self = shift;
     my $content = shift;
     if (is_interactive() && !$ORIGINAL_STDOUT) {
-        local  $ENV{'LESS'} = '-FXe';
-        local  $ENV{'MORE'} = '-FXe';
+        local $ENV{'LESS'} = '-FXe';
+        local $ENV{'MORE'};
+        $ENV{'MORE'} = '-FXe' unless $^O =~ /^MSWin/;
 
         my $pager = $self->get_pager();
         return unless $pager;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list