bugfix: 'lines|blines' default action in term buffers
This commit is contained in:
parent
2122c2cd05
commit
da2c0fe3df
@ -251,9 +251,10 @@ M.buffer_lines = function(opts)
|
|||||||
|
|
||||||
if line then
|
if line then
|
||||||
-- add current location to jumplist
|
-- 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.api.nvim_win_set_cursor(0, {line, 0})
|
||||||
vim.cmd("norm! zz")
|
if not is_term then vim.cmd("norm! zz") end
|
||||||
end
|
end
|
||||||
|
|
||||||
end)()
|
end)()
|
||||||
|
Loading…
Reference in New Issue
Block a user