Skip to content

Commit

Permalink
fix wrong argument of string.rep, solve comment of #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuanLck committed Feb 17, 2022
1 parent 1ba86f1 commit f3d072a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pairs/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ end

-- get lua escaped triplet pair
function M.triplet(left)
return string.rep(3, M.escape(left))
return string.rep(M.escape(left), 3)
end

-- get indentation of line
Expand Down

0 comments on commit f3d072a

Please sign in to comment.