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

Function countDisplayLines

tools/edit_ui.go:248–254  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

246}
247
248func countDisplayLines(text string) int {
249 count := strings.Count(text, "\n") + 1
250 if count < 1 {
251 return 1
252 }
253 return count
254}

Callers 1

Calls 1

CountMethod · 0.80

Tested by

no test coverage detected