Skip to content

Commit

Permalink
Determine statusline height too
Browse files Browse the repository at this point in the history
  • Loading branch information
SheffeyG committed Jan 16, 2025
1 parent 4a9bae2 commit ac2744c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/neogit/lib/buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ function Buffer:show()
width = vim.o.columns,
height = math.floor(vim.o.lines * 0.3),
col = 0,
row = vim.o.lines - vim.o.cmdheight - 1,
-- buffer_height - cmdline - statusline
row = vim.o.lines - vim.o.cmdheight - (vim.o.laststatus > 0 and 1 or 0),
style = "minimal",
focusable = true,
border = { "", "", "", "", "", "", "", "" },
Expand All @@ -364,7 +365,8 @@ function Buffer:show()
width = vim.o.columns,
height = math.floor(vim.o.lines * 0.3),
col = 0,
row = vim.o.lines - vim.o.cmdheight - 1,
-- buffer_height - cmdline - statusline
row = vim.o.lines - vim.o.cmdheight - (vim.o.laststatus > 0 and 1 or 0),
style = "minimal",
border = { "", "", "", "", "", "", "", "" },
-- title = (" %s Actions "):format(title),
Expand Down

0 comments on commit ac2744c

Please sign in to comment.