Skip to content

Commit 48818d5

Browse files
committed
fix: reset window widths after resizing the view
1 parent 2b3a656 commit 48818d5

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
@@ -103,7 +103,6 @@ local function open_window()
103103
local winnr = a.nvim_get_current_win()
104104
local tabpage = a.nvim_get_current_tabpage()
105105
M.View.tabpages[tabpage] = vim.tbl_extend("force", M.View.tabpages[tabpage] or {help = false}, {winnr = winnr})
106-
vim.cmd ":wincmd ="
107106
end
108107

109108
local function set_window_options_and_buffer()
@@ -180,6 +179,7 @@ function M.resize(size)
180179
else
181180
a.nvim_win_set_height(M.get_winnr(), get_size())
182181
end
182+
vim.cmd ":wincmd ="
183183
end
184184

185185
function M.reposition_window()

0 commit comments

Comments
 (0)