mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 20:09:43 +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'};
|
||||
|
||||
if(defined $previous_from) {
|
||||
if($previous_from eq $from) {
|
||||
$modifier -= $previous_modifier;
|
||||
if($previous_from eq $from and $previous_modifier =~ /^\d+$/) {
|
||||
$modifier -= $modifier - $previous_modifier;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user