Skip to content
Myr

Remove notes about how we'd auto-truncate lines as we're doing that now

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 3266c36 · Browse files · 1 file+0 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−17 removed

  • other:+0 added−17 removed

1 file+0 added−17 removed

modified:renderer.go-17 removed
94 unmodified lines
95 // Nothing to do96 return97 }9899 // We have an opportunity here to limit the rendering to the terminal width100 // and height, but this would mean a few things:101 //102 // 1) We'd need to maintain the terminal dimensions internally and listen103 // for window size changes. [done]104 //105 // 2) We'd need to measure the width of lines, accounting for multi-cell106 // rune widths, commonly found in Chinese, Japanese, Korean, emojis and so107 // on. We'd use something like go-runewidth108 // (http://github.com/mattn/go-runewidth).109 //110 // 3) We'd need to measure the width of lines excluding ANSI escape111 // sequences and break lines in the right places accordingly.112 //113 // Because of the way this would complicate the renderer, this may not be114 // the place to do that.11599 out := new(bytes.Buffer)100101 // Clear any lines we painted in the last render.102 if r.linesRendered > 0 {
288 unmodified lines