Skip to content

Commit 99129b6

Browse files
committed
fix: revert to original logic for updating menu position
Not sure why the order matters but I'll just close my eyes and pretend I never saw this Closes #436
1 parent af7c5d9 commit 99129b6

File tree

1 file changed

+4
-2
lines changed
  • lua/blink/cmp/completion/windows

1 file changed

+4
-2
lines changed

lua/blink/cmp/completion/windows/menu.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ function menu.open_with_items(context, items)
5252
if not menu.renderer then menu.renderer = require('blink.cmp.completion.windows.render').new(config.draw) end
5353
menu.renderer:draw(menu.win:get_buf(), items)
5454

55-
if menu.auto_show then menu.open() end
55+
if menu.auto_show then
56+
menu.open()
57+
menu.update_position()
58+
end
5659
end
5760

5861
function menu.open()
@@ -62,7 +65,6 @@ function menu.open()
6265
if menu.selected_item_idx ~= nil then
6366
vim.api.nvim_win_set_cursor(menu.win:get_win(), { menu.selected_item_idx, 0 })
6467
end
65-
menu.update_position()
6668

6769
menu.open_emitter:emit()
6870
end

0 commit comments

Comments
 (0)