3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-19 10:29:30 +01: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; last;
} }
if($#replacements > 0) { if($#replacements > -1) {
@replacements = sort { $a->{'from'} cmp $b->{'from'} or $a->{'modifier'} <=> $b->{'modifier'} } @replacements; @replacements = sort { $a->{'from'} cmp $b->{'from'} or $a->{'modifier'} <=> $b->{'modifier'} } @replacements;
my ($previous_from, $previous_modifier); my ($previous_from, $previous_modifier);