0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.1.0765: string format of a Blob can't be parsed back

Problem:    String format of a Blob can't be parsed back.
Solution:   Use 0z format.
This commit is contained in:
Bram Moolenaar
2019-01-17 16:32:53 +01:00
parent 6e0b6a0bec
commit 4131fd5509
4 changed files with 32 additions and 24 deletions

View File

@@ -4258,6 +4258,8 @@ eval7(
if (blob != NULL)
ga_append(&blob->bv_ga,
(hex2nr(*bp) << 4) + hex2nr(*(bp+1)));
if (bp[2] == '.' && vim_isxdigit(bp[3]))
++bp;
}
if (blob != NULL)
rettv_blob_set(rettv, blob);