Fix crash in string pad

Try:

    string pad -w 8 he \eh
This commit is contained in:
Fabian Homborg
2021-03-09 18:32:15 +01:00
parent a7df92e187
commit daa3cc17c4
2 changed files with 12 additions and 7 deletions

View File

@@ -713,3 +713,8 @@ end
string escape \x7F
# CHECK: \x7f
# This used to crash.
string pad -w 8 he \eh
# CHECK: he
# CHECK: {{\x1bh}}