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

Method LessThan

internal/buffer/loc.go:13–18  ·  view source on GitHub ↗

LessThan returns true if b is smaller

(b Loc)

Source from the content-addressed store, hash-verified

11
12// LessThan returns true if b is smaller
13func (l Loc) LessThan(b Loc) bool {
14 if l.Y < b.Y {
15 return true
16 }
17 return l.Y == b.Y && l.X < b.X
18}
19
20// GreaterThan returns true if b is bigger
21func (l Loc) GreaterThan(b Loc) bool {

Callers 9

GetSelectionMethod · 0.95
DisplayMethod · 0.95
displayBufferMethod · 0.95
displayBufferMethod · 0.95
ClampMethod · 0.95
DeleteMethod · 0.45
DiffLAFunction · 0.45
AddLineToSelectionMethod · 0.45
AddWordToSelectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected