projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. Upped the version no !!!!
[spider.git]
/
perl
/
DXCommandmode.pm
diff --git
a/perl/DXCommandmode.pm
b/perl/DXCommandmode.pm
index de59160663c080356a11a354c5a52b098f0f3ea1..b9d8e6cfc7d3b4e9f7eafadb2767cfc420f5df33 100644
(file)
--- a/
perl/DXCommandmode.pm
+++ b/
perl/DXCommandmode.pm
@@
-130,7
+130,7
@@
sub normal
$self->state('prompt');
}
} else {
$self->state('prompt');
}
} else {
- @ans = run_cmd($self, $cmdline) if length $cmdline;
+ @ans = run_cmd($self, $cmdline)
; #
if length $cmdline;
if ($self->{pagelth} && @ans > $self->{pagelth}) {
my $i;
if ($self->{pagelth} && @ans > $self->{pagelth}) {
my $i;
@@
-175,6
+175,8
@@
sub run_cmd
return (1, "Syserr: Eval err $errstr on stored func $self->{func}");
}
} else {
return (1, "Syserr: Eval err $errstr on stored func $self->{func}");
}
} else {
+
+ return () if length $cmdline == 0;
# strip out //
$cmdline =~ s|//|/|og;
# strip out //
$cmdline =~ s|//|/|og;