style(win): luals annotations

This commit is contained in:
Folke Lemaitre 2025-01-16 09:06:04 +01:00
parent a832e7e915
commit 3fdb7f4461
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -1069,6 +1069,7 @@ function M:dim(parent)
---@param ps number parent size
local function pos(p, s, ps, border_from, border_to)
p = type(p) == "function" and p(self) or p
---@cast p number?
if self.opts.relative == "cursor" then
return p or 0
end