From e84828806c38a36207c00f4e3271520adab75c22 Mon Sep 17 00:00:00 2001 From: eightpigs Date: Mon, 6 Dec 2021 05:32:08 +0800 Subject: [PATCH] fix: NvimTree does not open the file when it is open standalone (#815) --- lua/nvim-tree/lib.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/nvim-tree/lib.lua b/lua/nvim-tree/lib.lua index 2fde8e72..4767549a 100644 --- a/lua/nvim-tree/lib.lua +++ b/lua/nvim-tree/lib.lua @@ -345,8 +345,6 @@ function M.open_file(mode, filename) if target_winid == -1 then target_winid = M.Tree.target_winid - elseif target_winid == nil then - return end local do_split = mode == "split" or mode == "vsplit"