1
0
mirror of https://github.com/chylex/IntelliJ-AceJump.git synced 2025-05-12 22:34:04 +02:00

quiet plugin verifier error

This commit is contained in:
breandan 2023-06-18 14:22:04 -04:00
parent 48cadfef4c
commit 56b1dfa9a9

View File

@ -16,12 +16,14 @@ interface Boundaries {
* offsets outside the boundary, for ex. when the boundary is rectangular
* and the file has long lines which are only partially visible.
*/
fun getOffsetRange(editor: Editor, cache: EditorOffsetCache = EditorOffsetCache.Uncached): IntRange
fun getOffsetRange(editor: Editor, cache: EditorOffsetCache = EditorOffsetCache.Uncached): IntRange =
StandardBoundaries.VISIBLE_ON_SCREEN.getOffsetRange(editor, cache)
/**
* Returns whether the editor offset is included within the boundary.
*/
fun isOffsetInside(editor: Editor, offset: Int, cache: EditorOffsetCache = EditorOffsetCache.Uncached): Boolean
fun isOffsetInside(editor: Editor, offset: Int, cache: EditorOffsetCache = EditorOffsetCache.Uncached): Boolean =
StandardBoundaries.VISIBLE_ON_SCREEN.isOffsetInside(editor, offset, cache)
/**
* Creates a boundary so that an offset/range is within the boundary