diff --git a/Editor/Parsing/XmlBackgroundParser.cs b/Editor/Parsing/XmlBackgroundParser.cs index 286f665..a1a224b 100644 --- a/Editor/Parsing/XmlBackgroundParser.cs +++ b/Editor/Parsing/XmlBackgroundParser.cs @@ -60,7 +60,7 @@ static int MaximumCompatiblePosition (ITextSnapshot snapshotA, ITextSnapshot sna while (newVersion.VersionNumber != oldVersion.VersionNumber) { if (oldVersion.Changes != null) { foreach (var change in oldVersion.Changes) { - if (change.OldPosition > position) { + if (change.OldPosition < position) { position = change.OldPosition; break; }