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:
parent
94602bd8f9
commit
13f3c86afa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user