mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gh] fix off-by-one in changed ranges mapping (IJPL-214498)
#IJPL-214498 Fixed (cherry picked from commit 74698994d4fdc22bccc198c5134802a8c2f9aea6) IJ-CR-182230 GitOrigin-RevId: e0634ec3351b17cd72254e84c19a9f5b4ca5fcef
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c02261ec77
commit
f500653cec
+3
-1
@@ -192,7 +192,9 @@ private class DiffEditorModel(
|
||||
Side.LEFT -> range.end1
|
||||
Side.RIGHT -> range.end2
|
||||
}
|
||||
val end = locationToLine(side to endLineIdx.dec())?.inc() ?: return null
|
||||
val end =
|
||||
if (startLineIdx == endLineIdx) start
|
||||
else locationToLine(side to endLineIdx.dec())?.inc() ?: return null
|
||||
return LineRange(start, end)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user