--- trunk/script/sman 2004/05/25 15:57:50 91 +++ trunk/script/sman 2004/05/26 19:01:59 96 @@ -239,6 +239,12 @@ if ($tdid !~ m(^/)) { $tdid = $tb->dir . '/' . $tdid; } + # if original version doesn't exist maybe someone created gziped one? + # (this is used if you decided to compress data files after indexing, + # next indexing will pick names with gz extension anyway) + if (! -e $tdid && -e $tdid.".gz") { + $tdid .= ".gz"; + } # The main task of all that follows from here is highlighting. WAIT # is designed to make it possible to show the user why a certain @@ -358,7 +364,7 @@ } sub less { - my $flags; + my $flags = ''; if ($WAIT::Config->{pager} =~ /less/) { $flags = '-r'; } elsif ($WAIT::Config->{pager} =~ /more/) {