|
|
|
@ -238,6 +238,7 @@ M.vimcmd_buf = function(vimcmd, selected, opts)
|
|
|
|
|
utils.warn(("':%s' failed: %s"):format(cmd, res))
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
if vimcmd ~= "bd" then
|
|
|
|
|
if curbuf ~= entry.bufnr or lnum ~= entry.line then
|
|
|
|
|
-- make sure we have valid column
|
|
|
|
|
entry.col = entry.col and entry.col>0 and entry.col or 1
|
|
|
|
@ -246,6 +247,7 @@ M.vimcmd_buf = function(vimcmd, selected, opts)
|
|
|
|
|
if not is_term and not opts.no_action_zz then vim.cmd("norm! zvzz") end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
M.buf_edit = function(selected, opts)
|
|
|
|
|
local vimcmd = "b"
|
|
|
|
|