1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2025-04-22 09:15:45 +02:00

Fix inspections on LF characters causing line backgrounds to overflow to next line

This commit is contained in:
chylex 2023-05-28 16:44:53 +02:00
parent 94602bd8f9
commit 13f3c86afa
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -38,7 +38,7 @@ internal value class EditorLensLineBackground(private val highlighter: RangeHigh
companion object {
fun show(editor: Editor, info: HighlightInfo): EditorLensLineBackground {
val startOffset = info.actualStartOffset
val endOffset = info.actualEndOffset
val endOffset = (info.actualEndOffset - 1).coerceAtLeast(startOffset)
val severity = LensSeverity.from(info.severity)
val layer = getHighlightLayer(severity)