diff options
| author | Sean Dewar <seandewar@users.noreply.github.com> | 2020-12-02 17:24:15 +0000 |
|---|---|---|
| committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-15 22:30:30 +0100 |
| commit | 6a02ccc2226ab427d7e6243a5b6d3e424557b0fd (patch) | |
| tree | c13befa39d12386b8c665c4804b2857d5a6dff74 /src/nvim/eval.c | |
| parent | 0eadd7e5fd4603fef313fd5fb4cced1b7b5f1679 (diff) | |
| download | rneovim-6a02ccc2226ab427d7e6243a5b6d3e424557b0fd.tar.gz rneovim-6a02ccc2226ab427d7e6243a5b6d3e424557b0fd.tar.bz2 rneovim-6a02ccc2226ab427d7e6243a5b6d3e424557b0fd.zip | |
vim-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.
https://github.com/vim/vim/commit/4131fd5509b283e978e8c6161f09643b64719787
Diffstat (limited to 'src/nvim/eval.c')
| -rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 35c3b1b876..596ed19ff9 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -4089,6 +4089,9 @@ static int eval7( if (blob != NULL) { ga_append(&blob->bv_ga, (hex2nr(*bp) << 4) + hex2nr(*(bp + 1))); } + if (bp[2] == '.' && ascii_isxdigit(bp[3])) { + bp++; + } } if (blob != NULL) { tv_blob_set_ret(rettv, blob); |