Skip to content

Commit

Permalink
fix: Fixed issues with escaping % in strings
Browse files Browse the repository at this point in the history
Literal `%` in strings no longer turn into `^@%`. Fixes alignment issues
of tables & widtb calculations.

Ref: #75, #177
  • Loading branch information
OXY2DEV committed Nov 6, 2024
1 parent 51e2013 commit e7f9de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/markview/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end
---@param input string
---@return string
utils.escape_string = function (input)
input = input:gsub("%%", "%%%");
input = input:gsub("%%", "%%%%");

input = input:gsub("%(", "%%(");
input = input:gsub("%)", "%%)");
Expand Down

0 comments on commit e7f9de4

Please sign in to comment.