fix: hide swapfile error when editing file (#188)
This commit is contained in:
parent
5ced687ddd
commit
bfc5a4c48f
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue