Add simple variables viewer, that doesnt cut of line

This commit is contained in:
2026-03-29 18:46:31 +02:00
parent bb829286d1
commit 060ab01648
5 changed files with 59 additions and 4 deletions

View File

@@ -113,6 +113,7 @@ func (c CodeViewer) View() string {
fmt.Fprintf(&out, "%-4d%s%s%s %s\n", lineNumber, breakpoint, executor, cursor, line)
}
// Count long lines, and add here if they are out of view, this is a bit tricky I guess
if len(lines)-c.offset < c.Height {
for range c.Height - len(lines) {
fmt.Fprintf(&out, "\n")