MCPcopy Create free account
hub / github.com/gokcehan/lf / getCustomWidth

Function getCustomWidth

ui.go:483–491  ·  view source on GitHub ↗
(dir *dir, beg, end int)

Source from the content-addressed store, hash-verified

481}
482
483func getCustomWidth(dir *dir, beg, end int) int {
484 maxw := 0
485
486 for _, f := range dir.files[beg:end] {
487 maxw = max(printLength(f.customInfo), maxw)
488 }
489
490 return maxw
491}
492
493func getWins(screen tcell.Screen) []*win {
494 wtot, htot := screen.Size()

Callers 1

printDirMethod · 0.85

Calls 1

printLengthFunction · 0.85

Tested by

no test coverage detected