MCPcopy
hub / github.com/micro-editor/micro / getRowCount

Method getRowCount

internal/display/softwrap.go:226–229  ·  view source on GitHub ↗
(line int)

Source from the content-addressed store, hash-verified

224}
225
226func (w *BufWindow) getRowCount(line int) int {
227 eol := buffer.Loc{X: util.CharacterCount(w.Buf.LineBytes(line)), Y: line}
228 return w.getVLocFromLoc(eol).Row + 1
229}
230
231func (w *BufWindow) scrollUp(s SLoc, n int) SLoc {
232 for n > 0 {

Callers 3

scrollUpMethod · 0.95
scrollDownMethod · 0.95
diffMethod · 0.95

Calls 3

getVLocFromLocMethod · 0.95
CharacterCountFunction · 0.92
LineBytesMethod · 0.65

Tested by

no test coverage detected