Skip to content

Commit

Permalink
minor refactor + rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestrew committed Jul 22, 2024
1 parent 3e9ef56 commit 1555afa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/telescope/_extensions/file_browser/make_entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,8 @@ local make_entry = function(opts)
vim.tbl_extend("force", opts, { disable_devicons = true, dir_hl = "TelescopePreviewDirectory" })
)

if entry.is_dir then
if entry.path == parent_dir then
path_display = "../"
end
if entry.is_dir and entry.path == parent_dir then
path_display = "../"
end

if not opts.disable_devicons then
Expand Down

0 comments on commit 1555afa

Please sign in to comment.