Merge pull request #11 from fazibear/patch-1

Fetch correct line number fixes #8
This commit is contained in:
Ali Almohaya 2023-03-22 20:13:08 +03:00 committed by GitHub
commit 8395b57676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ end
-- get the line number in the buffer
function M.get_line_number_from_buf()
local lineNum = vim.api.nvim__buf_stats(0).current_lnum
local lineNum = vim.api.nvim_win_get_cursor(0)[1]
return lineNum
end