fix: hide swapfile error when editing file (#188)

This commit is contained in:
Steven Arcangeli 2023-09-28 23:22:31 -07:00
parent 5ced687ddd
commit bfc5a4c48f

View file

@ -567,6 +567,7 @@ M.select = function(opts, callback)
horizontal = opts.horizontal, horizontal = opts.horizontal,
split = opts.split, split = opts.split,
keepalt = true, keepalt = true,
emsg_silent = true,
} }
local filename = util.escape_filename(normalized_url) local filename = util.escape_filename(normalized_url)
@ -585,9 +586,6 @@ M.select = function(opts, callback)
vim.api.nvim_set_current_win(preview_win) vim.api.nvim_set_current_win(preview_win)
cmd = "edit" cmd = "edit"
else else
if vim.tbl_isempty(mods) then
mods = nil
end
if opts.tab then if opts.tab then
cmd = "tabedit" cmd = "tabedit"
elseif opts.split then elseif opts.split then