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

Function IntOpt

internal/util/util.go:538–540  ·  view source on GitHub ↗

IntOpt turns a float64 setting to an int

(opt any)

Source from the content-addressed store, hash-verified

536
537// IntOpt turns a float64 setting to an int
538func IntOpt(opt any) int {
539 return int(opt.(float64))
540}
541
542// GetCharPosInLine gets the char position of a visual x y
543// coordinate (this is necessary because tabs are 1 char but

Callers 13

getStartInfoMethod · 0.92
displayBufferMethod · 0.92
getVLocFromLocMethod · 0.92
getLocFromVLocMethod · 0.92
VLocFromLocMethod · 0.92
LocFromVLocMethod · 0.92
ScrollUpActionMethod · 0.92
ScrollDownActionMethod · 0.92
OutdentLineMethod · 0.92
OutdentSelectionMethod · 0.92
InsertTabMethod · 0.92
UpdateRulesMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected