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

Function formatRulerOpt

ui.go:706–716  ·  view source on GitHub ↗

Deprecated: Only called by drawRuler, which will eventually be replaced by drawRulerFile

(name, val string)

Source from the content-addressed store, hash-verified

704
705// Deprecated: Only called by drawRuler, which will eventually be replaced by drawRulerFile
706func formatRulerOpt(name, val string) string {
707 // handle escape character so it doesn't mess up the ruler
708 val = strings.ReplaceAll(val, "\033", "\033[7m\\033\033[0m")
709
710 // display name of builtin options for clarity
711 if !strings.HasPrefix(name, "lf_user_") {
712 return strings.TrimPrefix(name, "lf_") + "=" + val
713 }
714
715 return val
716}
717
718// Deprecated: Will eventually be replaced by drawRulerFile
719func (ui *ui) drawStat(nav *nav) {

Callers 1

drawRulerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected