Recalculate the width of trimmed line

Close #821
This commit is contained in:
Junegunn Choi 2017-01-25 02:39:49 +09:00
parent f2ce233a6d
commit 8731d75607
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -847,6 +847,7 @@ func (t *Terminal) printHighlighted(result *Result, attr tui.Attr, col1 tui.Colo
offsets[idx].offset[1] = util.Min32(offset.offset[1], int32(maxWidth))
}
}
displayWidth = t.displayWidthWithLimit(text, 0, displayWidth)
}
var index int32