projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix comment width issues for tabs
[spider.git]
/
perl
/
DXCommandmode.pm
diff --git
a/perl/DXCommandmode.pm
b/perl/DXCommandmode.pm
index 0f45213596374b5da4c7f585f3bf730906a413dc..051332b03b75c8f85ff9e32d75dbe23755a25f0d 100644
(file)
--- a/
perl/DXCommandmode.pm
+++ b/
perl/DXCommandmode.pm
@@
-996,10
+996,11
@@
sub format_dx_spot
my $t = ztime($_[2]);
my $loc = '';
my $t = ztime($_[2]);
my $loc = '';
- my $clth = 3
0;
+ my $clth = 3
1 + $self->{width} - 80; # allow comment to grow according the screen width
# --$clth if $self->{consort} eq 'local';
my $comment = substr (($_[3] || ''), 0, $clth);
# --$clth if $self->{consort} eq 'local';
my $comment = substr (($_[3] || ''), 0, $clth);
+ $comment =~ s/\t/ /g;
$comment .= ' ' x ($clth - (length($comment)));
if ($self->{user}->wantgrid) {
$comment .= ' ' x ($clth - (length($comment)));
if ($self->{user}->wantgrid) {
@@
-1335,11
+1336,16
@@
sub spawn_cmd
sub {
my $subpro = shift;
if (isdbg('progress')) {
sub {
my $subpro = shift;
if (isdbg('progress')) {
- my $s = qq{line: "$line"};
+ my $s = qq{
$call
line: "$line"};
$s .= ", args: " . join(', ', map { defined $_ ? qq{'$_'} : q{'undef'} } @$args) if $args && @$args;
dbg($s);
}
$s .= ", args: " . join(', ', map { defined $_ ? qq{'$_'} : q{'undef'} } @$args) if $args && @$args;
dbg($s);
}
- eval { @out = $cmdref->(@$args); };
+ eval {
+ ++$self->{_in_sub_process};
+ dbg "\$self->{_in_sub_process} = $self->{_in_sub_process}";
+ @out = $cmdref->(@$args);
+ --$self->{_in_sub_process} if $self->{_in_sub_process} > 0;
+ };
if ($@) {
DXDebug::dbgprintring(25);
push @out, DXDebug::shortmess($@);
if ($@) {
DXDebug::dbgprintring(25);
push @out, DXDebug::shortmess($@);