MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / truncateDisplayLine

Function truncateDisplayLine

tools/edit_ui.go:223–232  ·  view source on GitHub ↗
(line string, maxLen int)

Source from the content-addressed store, hash-verified

221}
222
223func truncateDisplayLine(line string, maxLen int) string {
224 runes := []rune(line)
225 if len(runes) <= maxLen {
226 return line
227 }
228 if maxLen <= 0 {
229 return ""
230 }
231 return string(runes[:maxLen])
232}
233
234func truncateDisplayLineWithEllipsis(line string, maxLen int) string {
235 runes := []rune(line)

Callers 3

RenderEditFileToolResultFunction · 0.85
renderEditErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected