Skip to content

Commit 507ee65

Browse files
committed
Close #1405
1 parent 753825f commit 507ee65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RetailCoder.VBE/Inspections/UntypedFunctionUsageInspectionResult.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public override void Fix()
6767
var module = Selection.QualifiedName.Component.CodeModule;
6868
var lines = module.Lines[selection.StartLine, selection.LineCount];
6969

70-
var result = lines.Replace(originalInstruction, newInstruction);
70+
var result = lines.Remove(Context.Start.Column, originalInstruction.Length)
71+
.Insert(Context.Start.Column, newInstruction);
7172
module.ReplaceLine(selection.StartLine, result);
7273
}
7374

0 commit comments

Comments
 (0)