summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoretienne2004-03-23 12:57:08 +0000
committeretienne2004-03-23 12:57:08 +0000
commit714f1c4f3878f8e7aba686f078eb08de91667713 (patch)
tree030faec5031c561b9effed1f77527739a2e11182
parentea7526c706d3b69b71d9243c5addb9d6c0a59693 (diff)
downloadivymon-714f1c4f3878f8e7aba686f078eb08de91667713.zip
ivymon-714f1c4f3878f8e7aba686f078eb08de91667713.tar.gz
ivymon-714f1c4f3878f8e7aba686f078eb08de91667713.tar.bz2
ivymon-714f1c4f3878f8e7aba686f078eb08de91667713.tar.xz
Bug fix in bindings : when a message matches a regular expression
containing several bracketing constructs, only the string corresponding to the first bracketing construct is displayed.
-rwxr-xr-xsrc/ivymon11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ivymon b/src/ivymon
index 1c72a93..a12fcbe 100755
--- a/src/ivymon
+++ b/src/ivymon
@@ -797,12 +797,18 @@ sub addIvyBinding {
my $binding = shift;
#print "in addIvyBinding $binding\n";
$ivy->bindRegexp($binding, [sub {
+ my $sender = shift;
+ my $message;
+ for (my $i = 0; $i < @_; $i++) {
+ $_[$i] = '"'.$_[$i].'"';
+ }
+ $message = join(' ', @_);
$messagesNumber++;
if ($stopFlag) {
- &bufferizeMessages(@_);
+ &bufferizeMessages($sender, $message);
} else {
&beforeUpdatingMessages;
- &updateMessages(@_);
+ &updateMessages($sender, $message);
&afterUpdatingMessages;
}
}]);
@@ -1106,7 +1112,6 @@ sub beforeUpdatingMessages {
sub updateMessages {
my ($sender, $message) = @_;
chomp($message);
- $message = '"' . $message . '"' ;
# If scrolling is available, format and then display message.
# Unless file has been loaded, look at history : compare widget text lines
# number with history size