3
0
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:
Pragmatic Software 2010-05-16 19:23:49 +00:00
parent e1474f3a1b
commit fd971fd3e3

View File

@ -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;
} }
} }