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:
parent
f819867c63
commit
71c89cb112
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user