diff --git a/lua/u/renderer.lua b/lua/u/renderer.lua index f1e7b7b..d99c3a7 100644 --- a/lua/u/renderer.lua +++ b/lua/u/renderer.lua @@ -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 diff --git a/lua/u/utils.lua b/lua/u/utils.lua index b301d40..9427dc4 100644 --- a/lua/u/utils.lua +++ b/lua/u/utils.lua @@ -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,