fix minor bugs
All checks were successful
NeoVim tests / code-quality (push) Successful in 1m35s

This commit is contained in:
Jonathan Apodaca 2025-07-09 11:32:38 -06:00
parent 103270a241
commit 3682c07b3e
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ function Renderer.markup_to_lines(opts) -- {{{
end -- }}}
--- @param opts {
--- tree: string;
--- tree: u.renderer.Tree;
--- format_tag?: fun(tag: u.renderer.Tag): string;
--- }
function Renderer.markup_to_string(opts) return table.concat(Renderer.markup_to_lines(opts), '\n') end

View File

@ -147,7 +147,7 @@ function M.create_delegated_cmd_args(current_args)
range = current_args.range == 1 and { current_args.line1 }
or current_args.range == 2 and { current_args.line1, current_args.line2 }
or nil,
count = current_args.count ~= -1 and current_args.count or nil,
count = (current_args.count ~= -1 and current_args.range == 0) and current_args.count or nil,
reg = current_args.reg ~= '' and current_args.reg or nil,
bang = current_args.bang or nil,
args = #current_args.fargs > 0 and current_args.fargs or nil,