From 8731d756072a1180feb0b88a4c1ef0637536c27d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 25 Jan 2017 02:39:49 +0900 Subject: [PATCH] Recalculate the width of trimmed line Close #821 --- src/terminal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/terminal.go b/src/terminal.go index d06f752..081f715 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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