Skip to content

Commit b314b3a

Browse files
authored
fix(#1500): focusing directories with a trailing slash in their path doesn't work (#1501)
1 parent 261a5c3 commit b314b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/actions/fs/create-file.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function M.fn(node)
108108
end
109109
-- INFO: defer needed when reload is automatic (watchers)
110110
vim.defer_fn(function()
111-
utils.focus_file(new_file_path)
111+
utils.focus_file(utils.path_remove_trailing(new_file_path))
112112
end, 150)
113113
end)
114114
end

0 commit comments

Comments
 (0)