fix: adapt to the nightly change of linemode

This commit is contained in:
sxyazi
2025-12-24 01:04:00 +08:00
parent 7b0adcd854
commit 05234ed158
2 changed files with 8 additions and 1 deletions

View File

@@ -189,6 +189,11 @@ local function setup(st, opts)
}
Linemode:children_add(function(self)
-- TODO: use `not self._file.in_current` instead
if self._file.in_current == false then
return ""
end
local url = self._file.url
local repo = st.dirs[tostring(url.base or url.parent)]
local code