Skip to content

Commit 8d26f40

Browse files
committed
fix type mismatch
1 parent edbb827 commit 8d26f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/actions/node/open-file.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function M.fn(mode, filename)
395395

396396
local buf_loaded = is_already_loaded(fname)
397397

398-
local found_win = utils.get_win_buf_from_path(fname)
398+
local found_win = utils.get_win_buf_from_path(filename)
399399
if found_win and (mode == "preview" or mode == "preview_no_picker") then
400400
return
401401
end

0 commit comments

Comments
 (0)