fix: adapt to the nightly change of linemode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user