Skip to content

Commit

Permalink
Merge pull request #1640 from SheffeyG/fix-console-height
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey authored Jan 21, 2025
2 parents 060a625 + ac2744c commit 63124cf
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 - 2,
-- 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 - 2,
-- 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 63124cf

Please sign in to comment.