Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 22635:9e249065aeac v8.2.1866
patch 8.2.1866: Vim9: appending to pushed blob gives wrong result
Commit: https://github.com/vim/vim/commit/66fa5fd54f550c0790d36c20124c49493b323bfa
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 19 20:21:03 2020 +0200
patch 8.2.1866: Vim9: appending to pushed blob gives wrong result
Problem: Vim9: appending to pushed blob gives wrong result.
Solution: Set ga_maxlen when copying a blob.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 19 Oct 2020 20:30:06 +0200 |
parents | 6589dae9696c |
children | 4d4042683371 |
comparison
equal
deleted
inserted
replaced
22634:33481f40f8e6 | 22635:9e249065aeac |
---|---|
1788 add(l, 123) | 1788 add(l, 123) |
1789 END | 1789 END |
1790 CheckDefExecFailure(lines, 'E1130:', 2) | 1790 CheckDefExecFailure(lines, 'E1130:', 2) |
1791 enddef | 1791 enddef |
1792 | 1792 |
1793 def Test_blob_add() | |
1794 var b: blob = 0z12 | |
1795 add(b, 0x34) | |
1796 assert_equal(0z1234, b) | |
1797 enddef | |
1798 | |
1793 def SID(): number | 1799 def SID(): number |
1794 return expand('<SID>') | 1800 return expand('<SID>') |
1795 ->matchstr('<SNR>\zs\d\+\ze_$') | 1801 ->matchstr('<SNR>\zs\d\+\ze_$') |
1796 ->str2nr() | 1802 ->str2nr() |
1797 enddef | 1803 enddef |