diff options
| author | theprimeagain <the.primeagen@gmail.com> | 2026-02-21 09:28:39 -0700 |
|---|---|---|
| committer | theprimeagain <the.primeagen@gmail.com> | 2026-02-21 11:44:12 -0700 |
| commit | 3787c3dc34a1a9b818b3e71afa02823f5bec96c3 (patch) | |
| tree | 87068473862e70b6ad749a2d9782b069fb7d4e70 /lua/99/geo.lua | |
| parent | f03187fb3c28a33ae85f587c56d73fd4d56f2a6a (diff) | |
| download | a4-3787c3dc34a1a9b818b3e71afa02823f5bec96c3.tar.xz a4-3787c3dc34a1a9b818b3e71afa02823f5bec96c3.zip | |
Refactoring of context and request entry into a single thing prompt
Diffstat (limited to 'lua/99/geo.lua')
| -rw-r--r-- | lua/99/geo.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/99/geo.lua b/lua/99/geo.lua index 33e0cb1..48e60ad 100644 --- a/lua/99/geo.lua +++ b/lua/99/geo.lua @@ -204,6 +204,10 @@ function Point.from_mark(mark) }, Point) end +function Point.zero() + return Point.from_0_based(0, 0) +end + --- @class _99.Range --- @field start _99.Point --- @field end_ _99.Point @@ -353,6 +357,11 @@ function Range:to_string() ) end +--- @return _99.Range +function Range.zero() + return Range:new(0, Point.zero(), Point.zero()) +end + return { Point = Point, Range = Range, |
