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
1 changed files with 2 additions and 2 deletions

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