This commit is contained in:
hrsh7th
2022-10-15 15:16:27 +09:00
parent bf1b112615
commit 69476c9e06
4 changed files with 8 additions and 10 deletions

View File

@@ -48,7 +48,6 @@ end
api.get_cursor = function()
if api.is_cmdline_mode() then
return { math.min(vim.o.lines, vim.o.lines - (vim.api.nvim_get_option('cmdheight') - 1)), vim.fn.getcmdpos() - 1 }
end
return vim.api.nvim_win_get_cursor(0)
end