Skip to content

Commit 1555afa

Browse files
committed
minor refactor + rebase
1 parent 3e9ef56 commit 1555afa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lua/telescope/_extensions/file_browser/make_entry.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ local make_entry = function(opts)
130130
vim.tbl_extend("force", opts, { disable_devicons = true, dir_hl = "TelescopePreviewDirectory" })
131131
)
132132

133-
if entry.is_dir then
134-
if entry.path == parent_dir then
135-
path_display = "../"
136-
end
133+
if entry.is_dir and entry.path == parent_dir then
134+
path_display = "../"
137135
end
138136

139137
if not opts.disable_devicons then

0 commit comments

Comments
 (0)