diff --git a/lua/cmp/view/native_entries_view.lua b/lua/cmp/view/native_entries_view.lua index d8b0b1b..0f5fc00 100644 --- a/lua/cmp/view/native_entries_view.lua +++ b/lua/cmp/view/native_entries_view.lua @@ -101,10 +101,10 @@ native_entries_view.info = function(self) if self:visible() then local info = vim.fn.pum_getpos() return { - width = info.width + (info.scrollable and 1 or 0), + width = info.width + (info.scrollbar and 1 or 0) + (info.col == 0 and 0 or 1), height = info.height, row = info.row, - col = info.col, + col = info.col == 0 and 0 or info.col - 1, } end end