Skip to content

Commit

Permalink
Add endOffset to LiveRange
Browse files Browse the repository at this point in the history
  • Loading branch information
lippfi authored and AlexPl292 committed Aug 23, 2024
1 parent 050f2f7 commit 373bfc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/maddyhome/idea/vim/newapi/IjLiveRange.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import com.maddyhome.idea.vim.common.LiveRange
internal class IjLiveRange(val marker: RangeMarker) : LiveRange {
override val startOffset: Int
get() = marker.startOffset

override val endOffset: Int
get() = marker.endOffset
}

val RangeMarker.vim: LiveRange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ package com.maddyhome.idea.vim.common

interface LiveRange {
val startOffset: Int
val endOffset: Int
}

0 comments on commit 373bfc4

Please sign in to comment.