Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/go-up/internals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ M.centerScreen = function()
vim.cmd('normal! zz')

-- get the line the cursor is on
local currentLine = vim.fn.line('.')
local topLine = vim.fn.line('w0')
local currentLine = vim.fn.winline()
local topLine = 1

-- get information about the current window
local windowHeight = vim.api.nvim_win_get_height(0)
Expand Down