MCPcopy
hub / github.com/mathaou/termdbms / GetOffsetForLineNumber

Function GetOffsetForLineNumber

viewer/ui.go:22–24  ·  view source on GitHub ↗
(a int)

Source from the content-addressed store, hash-verified

20)
21
22func GetOffsetForLineNumber(a int) int {
23 return FormatModeOffset - len(strconv.Itoa(a))
24}
25
26func SelectOption(m *TuiModel) {
27 if m.UI.RenderSelection {

Callers 3

MoveCursorWithinBoundsFunction · 0.85
HandleFormatMovementFunction · 0.85
HandleFormatModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected