Mercurial > vim
comparison src/eval.c @ 15515:99a4cc4782ac v8.1.0765
patch 8.1.0765: string format of a Blob can't be parsed back
commit https://github.com/vim/vim/commit/4131fd5509b283e978e8c6161f09643b64719787
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 17 16:32:53 2019 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Jan 2019 16:45:06 +0100 |
parents | f1c33409e908 |
children | 2ad5f0ffaa2e |
comparison
equal
deleted
inserted
replaced
15514:c72617e8f153 | 15515:99a4cc4782ac |
---|---|
4256 break; | 4256 break; |
4257 } | 4257 } |
4258 if (blob != NULL) | 4258 if (blob != NULL) |
4259 ga_append(&blob->bv_ga, | 4259 ga_append(&blob->bv_ga, |
4260 (hex2nr(*bp) << 4) + hex2nr(*(bp+1))); | 4260 (hex2nr(*bp) << 4) + hex2nr(*(bp+1))); |
4261 if (bp[2] == '.' && vim_isxdigit(bp[3])) | |
4262 ++bp; | |
4261 } | 4263 } |
4262 if (blob != NULL) | 4264 if (blob != NULL) |
4263 rettv_blob_set(rettv, blob); | 4265 rettv_blob_set(rettv, blob); |
4264 *arg = bp; | 4266 *arg = bp; |
4265 } | 4267 } |