chore(wezterm): ignore diagnostics for undefined-field in cwd_uri
This commit is contained in:
parent
f4880596aa
commit
f4a6a72fde
@ -70,7 +70,9 @@ wezterm.on("update-right-status", function(window, pane)
|
|||||||
if type(cwd_uri) == "userdata" then
|
if type(cwd_uri) == "userdata" then
|
||||||
-- Running on a newer version of wezterm and we have
|
-- Running on a newer version of wezterm and we have
|
||||||
-- a URL object here, making this simple!
|
-- a URL object here, making this simple!
|
||||||
|
---@diagnostic disable-next-line: undefined-field
|
||||||
cwd = cwd_uri.file_path
|
cwd = cwd_uri.file_path
|
||||||
|
---@diagnostic disable-next-line: undefined-field
|
||||||
hostname = cwd_uri.host or wezterm.hostname()
|
hostname = cwd_uri.host or wezterm.hostname()
|
||||||
else
|
else
|
||||||
-- an older version of wezterm, 20230712-072601-f4abf8fd or earlier,
|
-- an older version of wezterm, 20230712-072601-f4abf8fd or earlier,
|
||||||
|
Loading…
Reference in New Issue
Block a user