Skip to content

Commit edddb91

Browse files
authored
Don't create a new empty buffer on every open. (nvim-tree#300)
1 parent 57c2e29 commit edddb91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/view.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ local move_tbl = {
130130
}
131131

132132
function M.open()
133-
a.nvim_command("vnew")
133+
a.nvim_command("vsp")
134134
local move_to = move_tbl[M.View.side]
135135
a.nvim_command("wincmd "..move_to)
136136
a.nvim_command("vertical resize "..M.View.width)

0 commit comments

Comments
 (0)