Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
248
func
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
RenderGroupedEditFileToolUse
Function · 0.85
Calls
1
Count
Method · 0.80
Tested by
no test coverage detected