Skip to content

Commit 0c4a068

Browse files
committed
fix(files): ignore paths for terminals in reveal command
1 parent b20dcda commit 0c4a068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/sources/filesystem/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ end
144144

145145
M.reveal_current_file = function()
146146
local path = vim.fn.expand("%:p")
147-
if not path or path == "" then
147+
if not path or path == "" or path:match("term://") then
148148
M.focus()
149149
return
150150
end

0 commit comments

Comments
 (0)