Skip to content

Commit

Permalink
Shift inlays for definitions with access modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
valis committed Jun 18, 2024
1 parent d5fbaaf commit 30e4dd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract class ArendDefinitionInlayProvider : InlayHintsProvider<NoSettings> {
val def = (arendDef.tcReferable as? TCDefReferable)?.typechecked ?: return true
val text = getText(def) ?: return true

val offset = arendDef.startOffset
val offset = (arendDef.parent ?: arendDef).startOffset
val inset = if (document == null) 0 else {
val width = EditorUtil.getPlainSpaceWidth(editor)
val line = document.getLineNumber(offset)
Expand Down

0 comments on commit 30e4dd7

Please sign in to comment.