fix(terminal): correct display width calculation with maxWidth (#4596)
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled
Generate Sponsors README / deploy (push) Has been cancelled

fix #4593

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

No files matched your search

+1 -1
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