fix: oil can open when terminal is focused (#51)
This commit is contained in:
parent
be962cf373
commit
0e53d40221
1 changed files with 6 additions and 0 deletions
|
|
@ -190,6 +190,12 @@ M.get_buffer_parent_url = function(bufname)
|
||||||
local parent_url = util.addslash(scheme .. parent)
|
local parent_url = util.addslash(scheme .. parent)
|
||||||
return parent_url, basename
|
return parent_url, basename
|
||||||
else
|
else
|
||||||
|
-- TODO maybe we should remove this special case and turn it into a config
|
||||||
|
if scheme == "term://" then
|
||||||
|
path = path:match("^(.*)//")
|
||||||
|
return config.adapter_to_scheme.files .. util.addslash(path)
|
||||||
|
end
|
||||||
|
|
||||||
local adapter = config.get_adapter_by_scheme(scheme)
|
local adapter = config.get_adapter_by_scheme(scheme)
|
||||||
local parent_url
|
local parent_url
|
||||||
if adapter and adapter.get_parent then
|
if adapter and adapter.get_parent then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue