Skip to content

Commit

Permalink
fix: noice.nvim getting cmdline_pos results in nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
Arom1a authored and sphamba committed Jan 31, 2025
1 parent 0ab631b commit 4b402d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/smear_cursor/screen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ end

M.get_screen_cmd_cursor_position = function()
if vim.g.ui_cmdline_pos ~= nil then
local row = vim.g.ui_cmdline_pos[1]
local col = vim.g.ui_cmdline_pos[2] + vim.fn.getcmdpos() + 1
local row = vim.g.ui_cmdline_pos["row"]
local col = vim.g.ui_cmdline_pos["col"] + vim.fn.getcmdpos() + 1

return row, col
end
Expand Down

0 comments on commit 4b402d4

Please sign in to comment.