diff --git a/src/terminal.go b/src/terminal.go index 74c29a05c7a6f7e29506d8575e28d11b29c55f0f..aca319a10adb467a873c6c30008c255c2d5a76c9 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -537,7 +537,8 @@ func (t *Terminal) printHighlighted(item *Item, bold bool, col1 int, col2 int, c } // Overflow - text := item.text + text := make([]rune, len(item.text)) + copy(text, item.text) offsets := item.colorOffsets(col2, bold, current) maxWidth := C.MaxX() - 3 - t.marginInt[1] - t.marginInt[3] fullWidth := displayWidth(text)