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,
|
||||
split = opts.split,
|
||||
keepalt = true,
|
||||
emsg_silent = true,
|
||||
}
|
||||
local filename = util.escape_filename(normalized_url)
|
||||
|
||||
|
|
@ -585,9 +586,6 @@ M.select = function(opts, callback)
|
|||
vim.api.nvim_set_current_win(preview_win)
|
||||
cmd = "edit"
|
||||
else
|
||||
if vim.tbl_isempty(mods) then
|
||||
mods = nil
|
||||
end
|
||||
if opts.tab then
|
||||
cmd = "tabedit"
|
||||
elseif opts.split then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue