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

Function wrapVisibleLines

ui/fullscreen_backend.go:1146–1159  ·  view source on GitHub ↗
(text string, width int)

Source from the content-addressed store, hash-verified

1144}
1145
1146func wrapVisibleLines(text string, width int) []string {
1147 if text == "" {
1148 return []string{""}
1149 }
1150 var wrapped []string
1151 for _, raw := range strings.Split(text, "\n") {
1152 if raw == "" {
1153 wrapped = append(wrapped, "")
1154 continue
1155 }
1156 wrapped = append(wrapped, wrapVisibleLine(raw, width)...)
1157 }
1158 return wrapped
1159}
1160
1161func wrapVisibleLine(text string, width int) []string {
1162 if width <= 0 {

Callers 1

wrappedTextForPaneMethod · 0.85

Calls 1

wrapVisibleLineFunction · 0.85

Tested by

no test coverage detected