We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c5fcdf + 1cf5835 commit 020e96fCopy full SHA for 020e96f
lua/go-up/internals.lua
@@ -38,8 +38,8 @@ M.centerScreen = function()
38
vim.cmd('normal! zz')
39
40
-- get the line the cursor is on
41
- local currentLine = vim.fn.line('.')
42
- local topLine = vim.fn.line('w0')
+ local currentLine = vim.fn.winline()
+ local topLine = 1
43
44
-- get information about the current window
45
local windowHeight = vim.api.nvim_win_get_height(0)
0 commit comments