Skip to content

Commit

Permalink
fix: error when opening aerial as float (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jan 10, 2022
1 parent b14cf53 commit 8454dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/aerial/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ M.get_height = function(bufnr)
return height
end
local max_height = math.min(config.float.max_height, vim.o.lines - vim.o.cmdheight)
return math.max(config.float.min_height, max_height / 2)
return math.max(config.float.min_height, math.floor(max_height / 2))
end

M.set_height = function(bufnr, height)
Expand Down

0 comments on commit 8454dee

Please sign in to comment.