Skip to content

Commit

Permalink
fix: hide swapfile error when editing file (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Sep 29, 2023
1 parent 5ced687 commit bfc5a4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/oil/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit bfc5a4c

Please sign in to comment.