projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2826e23
)
[ID 20010831.002] Bug in Term::Cap on Solaris ansi terminal using CPAN::Shell
author
Michael King
<mike808@users.sourceforge.net>
Fri, 1 Sep 2000 11:27:50 +0000
(12:28 +0101)
committer
Artur Bergman
<sky@nanisky.com>
Sat, 1 Sep 2001 11:39:13 +0000
(11:39 +0000)
Message-Id: <
200108312123
.QAA27476@smtp.networkusa.net>
With little tweak
p4raw-id: //depot/perl@11808
lib/Term/Cap.pm
patch
|
blob
|
history
diff --git
a/lib/Term/Cap.pm
b/lib/Term/Cap.pm
index
06002e2
..
550f7fa
100644
(file)
--- a/
lib/Term/Cap.pm
+++ b/
lib/Term/Cap.pm
@@
-295,7
+295,7
@@
sub Tpad { ## public
my($string, $cnt, $FH) = @_;
my($decr, $ms);
- if ($string =~ /(^[\d.]+)(\*?)(.*)$/) {
+ if (
defined $string &&
$string =~ /(^[\d.]+)(\*?)(.*)$/) {
$ms = $1;
$ms *= $cnt if $2;
$string = $3;