Skip to content

Commit c22df06

Browse files
committed
The focus in the debug UI follow the current line
1 parent 832085e commit c22df06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tiny-cli/src/jvmMain/kotlin/com/github/minigdx/tiny/cli/ui/TinyDebuggerUI.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ class TinyDebuggerUI(
209209

210210
// Highlight the line
211211
this.highlighter.addHighlight(start, end, DefaultHighlighter.DefaultHighlightPainter(color))
212+
213+
// Set the focus on that line
214+
this.caretPosition = start
212215
} catch (e: Exception) {
213216
e.printStackTrace()
214217
}

0 commit comments

Comments
 (0)