fix: crash in ssh and trash adapter detail columns (#235)
This commit is contained in:
parent
05cb8257cb
commit
e89a8f8ade
2 changed files with 5 additions and 2 deletions
|
|
@ -348,6 +348,9 @@ end)
|
|||
file_columns.mtime = {
|
||||
render = function(entry, conf)
|
||||
local meta = entry[FIELD_META]
|
||||
if not meta then
|
||||
return nil
|
||||
end
|
||||
---@type oil.TrashInfo
|
||||
local trash_info = meta.trash_info
|
||||
local time = trash_info and trash_info.deletion_date or meta.stat and meta.stat.mtime.sec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue