diff options
author | etienne | 2004-03-23 12:57:08 +0000 |
---|---|---|
committer | etienne | 2004-03-23 12:57:08 +0000 |
commit | 714f1c4f3878f8e7aba686f078eb08de91667713 (patch) | |
tree | 030faec5031c561b9effed1f77527739a2e11182 /src | |
parent | ea7526c706d3b69b71d9243c5addb9d6c0a59693 (diff) | |
download | ivymon-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.
Diffstat (limited to 'src')
-rwxr-xr-x | src/ivymon | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |