Skip to content
Myr

Fix race condition

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 ae87f65 · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/terminal.go+2 added-1 removed
535 unmodified lines
536 }537 }538539 // Overflow540 text := item.text540 text := make([]rune, len(item.text))541 copy(text, item.text)542 offsets := item.colorOffsets(col2, bold, current)543 maxWidth := C.MaxX() - 3 - t.marginInt[1] - t.marginInt[3]544 fullWidth := displayWidth(text)545 if fullWidth > maxWidth {
561 unmodified lines