mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Interactive-editing replacement modifiers now keeps track of relative positions
This commit is contained in:
parent
e1474f3a1b
commit
fd971fd3e3
@ -209,8 +209,8 @@ my $got_changes = 0;
|
|||||||
my $modifier = $replacement->{'modifier'};
|
my $modifier = $replacement->{'modifier'};
|
||||||
|
|
||||||
if(defined $previous_from) {
|
if(defined $previous_from) {
|
||||||
if($previous_from eq $from) {
|
if($previous_from eq $from and $previous_modifier =~ /^\d+$/) {
|
||||||
$modifier -= $previous_modifier;
|
$modifier -= $modifier - $previous_modifier;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user