diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-28 16:06:56 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-02-28 16:51:31 +0800 |
commit | 55d30c459c878224507e90f2a6c1657cdd070668 (patch) | |
tree | b15a5dcb6d11717e329d213570a570867bce7b60 /src/nvim/testdir | |
parent | 88b70e7d4650795210222a598cbb233bf7fc98f8 (diff) | |
download | rneovim-55d30c459c878224507e90f2a6c1657cdd070668.tar.gz rneovim-55d30c459c878224507e90f2a6c1657cdd070668.tar.bz2 rneovim-55d30c459c878224507e90f2a6c1657cdd070668.zip |
vim-patch:8.2.2783: duplicate code for setting byte in blob, blob test may fail
Problem: Duplicate code for setting byte in blob, blob test may fail.
Solution: Call blob_set_append(). Test sort failure with "N".
https://github.com/vim/vim/commit/e8209b91b9974da95899b51dba4058b411d04d5b
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_blob.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_blob.vim b/src/nvim/testdir/test_blob.vim index 99b8c6083a..b1859f9dfe 100644 --- a/src/nvim/testdir/test_blob.vim +++ b/src/nvim/testdir/test_blob.vim @@ -632,7 +632,7 @@ func Test_blob_sort() if has('float') call CheckLegacyAndVim9Failure(['call sort([1.0, 0z11], "f")'], 'E975:') endif - call CheckLegacyAndVim9Failure(['call sort(["abc", 0z11], "f")'], 'E892:') + call CheckLegacyAndVim9Failure(['call sort([11, 0z11], "N")'], 'E974:') endfunc " The following used to cause an out-of-bounds memory access |