diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-25 02:39:49 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-25 02:39:49 +0900 |
commit | 8731d756072a1180feb0b88a4c1ef0637536c27d (patch) | |
tree | ae8adc3820f79644662f15d9e9bff3afdef86431 /src | |
parent | f2ce233a6dfe5d8c30a6abe527db9187790f4245 (diff) |
Recalculate the width of trimmed line
Close #821
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go index d06f7521..081f7156 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 |