3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02: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'};
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;
}
}