Skip to content

Commit

Permalink
fix(cmdline): make ui_cmdline_pos col 0-based
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 12, 2024
1 parent 29a0adb commit 324e6a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/noice/ui/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ function M.on_render(_, buf, line, byte)
col = pos.col - 1,
},
}
vim.g.ui_cmdline_pos = M.position.screenpos
vim.g.ui_cmdline_pos = {
row = M.position.screenpos.row,
col = M.position.screenpos.col - 1,
}
pcall(M.fix_cursor)
end

Expand Down

0 comments on commit 324e6a8

Please sign in to comment.