Skip to content

Commit

Permalink
Revert "fix: shorten path when opening files" (#197)
Browse files Browse the repository at this point in the history
This reverts commit 6cbc8d7.
  • Loading branch information
stevearc committed Oct 15, 2023
1 parent a8ac4de commit 69ce73e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lua/oil/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,6 @@ M.select = function(opts, callback)
keepalt = true,
emsg_silent = true,
}
-- If we're editing a file on disk, shorten the path prior to :edit so the
-- display name will show up shortened
if adapter.name == "files" and not util.parse_url(normalized_url) then
normalized_url = require("oil.fs").shorten_path(normalized_url)
end
local filename = util.escape_filename(normalized_url)

-- If we're previewing a file that hasn't been opened yet, make sure it gets deleted after we
Expand Down

0 comments on commit 69ce73e

Please sign in to comment.