Skip to content

Commit

Permalink
fix: aerial split starts at size 1
Browse files Browse the repository at this point in the history
By starting small and then getting resized larger, we prevent some
screen flicker and unnecessary resizing of the other windows.
  • Loading branch information
stevearc committed Oct 12, 2022
1 parent bbdfc56 commit 3c39fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/aerial/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ local function create_aerial_window(bufnr, aer_bufnr, direction, existing_win)
else
modifier = direction == "left" and "leftabove" or "rightbelow"
end
vim.cmd(string.format("noau vertical %s split", modifier))
vim.cmd(string.format("noau vertical %s 1split", modifier))
aer_winid = vim.api.nvim_get_current_win()
util.go_win_no_au(my_winid)
end
Expand Down

0 comments on commit 3c39fb3

Please sign in to comment.