fix: file not found (#1243)
This commit is contained in:
parent
cdacfce901
commit
b73b3d7888
@ -740,8 +740,7 @@ function Sidebar:minimize_snippets(snippets_map)
|
|||||||
|
|
||||||
if vim.tbl_count(snippets_map) > 0 then
|
if vim.tbl_count(snippets_map) > 0 then
|
||||||
local filepaths = vim.tbl_keys(snippets_map)
|
local filepaths = vim.tbl_keys(snippets_map)
|
||||||
local original_lines_, _, err = Utils.read_file_from_buf_or_disk(filepaths[1])
|
local original_lines_ = Utils.read_file_from_buf_or_disk(filepaths[1])
|
||||||
if err ~= nil then return {} end
|
|
||||||
if original_lines_ then original_lines = original_lines_ end
|
if original_lines_ then original_lines = original_lines_ end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user