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

Method LessThan

internal/display/softwrap.go:18–23  ·  view source on GitHub ↗

LessThan returns true if s is less b

(b SLoc)

Source from the content-addressed store, hash-verified

16
17// LessThan returns true if s is less b
18func (s SLoc) LessThan(b SLoc) bool {
19 if s.Line < b.Line {
20 return true
21 }
22 return s.Line == b.Line && s.Row < b.Row
23}
24
25// GreaterThan returns true if s is bigger than b
26func (s SLoc) GreaterThan(b SLoc) bool {

Callers 2

RelocateMethod · 0.45
diffMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected