bugfix: 'lines|blines' default action in term buffers

main
bhagwan 2 years ago
parent 2122c2cd05
commit da2c0fe3df

@ -251,9 +251,10 @@ M.buffer_lines = function(opts)
if line then
-- add current location to jumplist
vim.cmd("normal! m`")
local is_term = utils.is_term_buffer(0)
if not is_term then vim.cmd("normal! m`") end
vim.api.nvim_win_set_cursor(0, {line, 0})
vim.cmd("norm! zz")
if not is_term then vim.cmd("norm! zz") end
end
end)()

Loading…
Cancel
Save