m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-12-07 09:44:07 -05:00

fix(terminal): correct display width calculation with maxWidth (#4596)

fix #4593

* test(core): add test for --freeze-right with long ellipsis
This commit is contained in:
LangLangBart
2025-11-20 01:09:36 +01:00
committed by GitHub
parent 2ab923f3ae
commit 3db63f5e52
2 changed files with 11 additions and 1 deletions

View File

@@ -3807,7 +3807,7 @@ func (t *Terminal) printHighlighted(result Result, colBase tui.ColorPair, colMat
offs[idx].offset[1] = util.Min32(offset.offset[1], int32(maxWidth))
}
}
displayWidth = t.displayWidthWithLimit(runes, 0, displayWidth)
displayWidth = t.displayWidthWithLimit(runes, 0, maxWidth)
}
displayWidthSum += displayWidth