Skip to content

Commit

Permalink
Update ContinuePluginSelectionListener.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Erichsen committed Jan 14, 2025
1 parent a6641ce commit 1760011
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ class ContinuePluginSelectionListener(
val lineStartOffset = document.getLineStartOffset(lineNumber)
val lineEndOffset = document.getLineEndOffset(lineNumber)
val lineText = document.getText(TextRange(lineStartOffset, lineEndOffset)).trimEnd()
val endOfLinePos = LogicalPosition(lineNumber, lineText.length)
return editor.logicalPositionToXY(endOfLinePos).x
val visualPosition = editor.offsetToVisualPosition(lineStartOffset + lineText.length)
return editor.visualPositionToXY(visualPosition).x
}

val offset = 40
Expand Down

0 comments on commit 1760011

Please sign in to comment.