Merge pull request #11 from fazibear/patch-1
Fetch correct line number fixes #8
This commit is contained in:
commit
8395b57676
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue