3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

Off by one for replacements in interactive-editing, fixed

This commit is contained in:
Pragmatic Software 2010-05-22 02:25:59 +00:00
parent f819867c63
commit 71c89cb112

View File

@ -407,7 +407,7 @@ while(1) {
last;
}
if($#replacements > 0) {
if($#replacements > -1) {
@replacements = sort { $a->{'from'} cmp $b->{'from'} or $a->{'modifier'} <=> $b->{'modifier'} } @replacements;
my ($previous_from, $previous_modifier);