X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=4091d9e4181df81a6d79527942f19f54f69d4847;hb=b55a5be0062fb96613a2f42c25de550d69283b7a;hp=a2d59a5884d0a9e3416178a1f4ac91f4d2f814b2;hpb=95e1de8b4a66a860cd4e26e7cd6937d8e93203fb;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index a2d59a58..4091d9e4 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -1009,8 +1009,9 @@ sub format_dx_spot my ($slot1, $slot2) = ('', ''); my $clth = 30 + $self->{width} - 80; # allow comment to grow according the screen width - my $comment = substr (($_[3] || ''), 0, $clth); - $comment =~ s/\t/ /g; + my $c = $_[3]; + $c =~ s/\t/ /g; + my $comment = substr (($c || ''), 0, $clth); $comment .= ' ' x ($clth - (length($comment))); if (!$slot1 && $self->{user}->wantgrid) {