From a6a98856c3986de675bc40c9c98b7458fb19e95c Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Mon, 18 Oct 2021 13:25:06 +0900 Subject: [PATCH] Remove check code --- lua/cmp/view/custom_entries_view.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/lua/cmp/view/custom_entries_view.lua b/lua/cmp/view/custom_entries_view.lua index f5368d6..338f94d 100644 --- a/lua/cmp/view/custom_entries_view.lua +++ b/lua/cmp/view/custom_entries_view.lua @@ -147,9 +147,6 @@ custom_entries_view.open = function(self, offset, entries) local cursor = api.get_cursor() local delta = cursor[2] + 1 - self.offset local row, col = pos[1], pos[2] - delta - 1 - if row < 0 or vim.o.lines <= row or col < 0 or vim.o.columns <= col then - return - end self.entries_win:open({ relative = 'editor',