Skip to content

Commit

Permalink
fix: error opening aerial window (fixes #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Dec 30, 2021
1 parent f872cfe commit 9015ef5
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 @@ -22,7 +22,7 @@ M.get_width = function(bufnr)
if ok then
return width
end
return (config.min_width + config.max_width) / 2
return math.floor((config.min_width + config.max_width) / 2)
end

M.set_width = function(bufnr, width)
Expand Down

0 comments on commit 9015ef5

Please sign in to comment.