We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7af7336 commit fd6588eCopy full SHA for fd6588e
1 file changed
lua/fzf-lua/win.lua
@@ -468,10 +468,9 @@ function FzfWin:normalize_winopts(fullscreen)
468
}
469
470
-- #2121 we can suppress cmdline area when zindex >= 200
471
- local suppress_ch = fullscreen and winopts.zindex >= 200
472
- local max_width = suppress_ch and vim.o.columns or vim.o.columns - 2
473
- local max_height = suppress_ch and vim.o.lines or
474
- vim.o.lines - vim.o.cmdheight - 2
+ local ch = fullscreen and winopts.zindex >= 200 and 0 or vim.o.cmdheight
+ local max_width = vim.o.columns - 2
+ local max_height = vim.o.lines - ch - 2
475
winopts.width = math.min(max_width, winopts.width)
476
winopts.height = math.min(max_height, winopts.height)
477
if winopts.height <= 1 then
0 commit comments