Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Sep 21, 2021
1 parent 4dc68d7 commit e4a704f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/cmp/view/items_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ items_view.open = function(self, offset, entries)

local height = vim.api.nvim_get_option('pumheight')
height = height == 0 and #self.entries or height
height = math.min(height, #self.entries)
height = math.min(height, (vim.o.lines - 1) - vim.fn.winline() - 1)

vim.api.nvim_buf_set_lines(self.items_win.buf, 0, -1, false, lines)
Expand Down

0 comments on commit e4a704f

Please sign in to comment.