diff options
-rwxr-xr-x | src/ivymon | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1272,10 +1272,10 @@ sub searchNext { if ($index) { &highlightString($index, "$index + $strlen chars"); $messagesText->see($index); - $searchString = $messagesText->get($index, "$index + $strlen chars"); - $searchIndex = $index; &warning1($messagesText) if defined($searchIndex) and $messagesText->compare($index, "<=" ,$searchIndex); + $searchString = $messagesText->get($index, "$index + $strlen chars"); + $searchIndex = $index; } else { &warning2($messagesText); } @@ -1299,10 +1299,10 @@ sub searchPrev { if ($index) { &highlightString($index, "$index + $strlen chars"); $messagesText->see($index); - $searchString = $messagesText->get($index, "$index + $strlen chars"); - $searchIndex = $index; &warning1($messagesText) if defined($searchIndex) and $messagesText->compare($index, ">=" ,$searchIndex); + $searchString = $messagesText->get($index, "$index + $strlen chars"); + $searchIndex = $index; } else { &warning2($messagesText); } |