Skip to content

Commit 35d3511

Browse files
authored
refactor(#3344): temporarily allow deprecated nvim_win_set_width until a replacement is provided (#3345)
1 parent 7ff7040 commit 35d3511

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/nvim-tree/view.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function M.resize(size)
298298
local new_size = view_state.get_width()
299299

300300
if new_size ~= vim.api.nvim_win_get_width(winnr) then
301-
vim.api.nvim_win_set_width(winnr, new_size)
301+
vim.api.nvim_win_set_width(winnr, new_size) ---@diagnostic disable-line: deprecated see #3344
302302
if not config.g.view.preserve_window_proportions then
303303
vim.cmd(":wincmd =")
304304
end

0 commit comments

Comments
 (0)