Skip to content
Snippets Groups Projects
Commit 15c49a3e authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix race condition

parent ae87f654
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment