IDEA-58070 Soft wrap: Improve soft wraps performance

Corrected algorithm that calculates correct soft wraps cache entry by offset
This commit is contained in:
Denis Zhdanov
2010-11-19 13:18:43 +03:00
parent e1164f1314
commit 4a74f1ed4a
@@ -65,9 +65,6 @@ public class MappingUtil {
continue;
}
if (cacheEntry.startOffset > offset) {
if (start == end) {
return start - 1;
}
end = i - 1;
continue;
}