Skip to content

Commit

Permalink
feat(api): set vim.g.ui_cmdline_pos to (1,0)-indexed position of the …
Browse files Browse the repository at this point in the history
…noice cmdline
  • Loading branch information
folke committed Dec 11, 2024
1 parent 7b1960c commit a45f997
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/noice/ui/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ function M.on_render(_, buf, line, byte)
col = pos.col - 1,
},
}
vim.g.ui_cmdline_pos = M.position.screenpos
pcall(M.fix_cursor)
end

Expand All @@ -288,6 +289,7 @@ function M.update()
end
Manager.add(M.message)
else
vim.g.ui_cmdline_pos = nil
Manager.remove(M.message)
if not M.real_cursor then
Hacks.show_cursor()
Expand Down

0 comments on commit a45f997

Please sign in to comment.