Skip to content
Myr

Avoid printing items in an extremely narrow screen

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 7d26eca · Browse files · 1 file+3 added−1 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/terminal.go+3 added-1 removed
3170 unmodified lines
3171 }3172 displayWidth = t.displayWidthWithLimit(line, 0, displayWidth)3173 }31743175 if maxWidth > 0 {3175 t.printColoredString(t.window, line, offsets, colBase)3176 t.printColoredString(t.window, line, offsets, colBase)3177 }3178 if postTask != nil {3179 postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw)3180 } else {3181 t.markOtherLine(actualLineNum)
3104 unmodified lines