diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-25 23:01:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-25 23:01:42 +0200 |
commit | 1919371b2b9ddb1a645f40b59adbd89317530882 (patch) | |
tree | 2b484363ac53680d71826dc360608b505b91cfe5 /src/testdir | |
parent | 25e0f5863e9010a75a1ff0d04e8f886403968755 (diff) | |
download | vim-git-1919371b2b9ddb1a645f40b59adbd89317530882.tar.gz |
patch 8.2.0824: still not enough memory allocated when converting stringv8.2.0824
Problem: Still not enough memory allocated when converting string with
special character.
Solution: Reserve space for expanding K_SPECIAL. (closes #6130)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_functions.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index 712aec4ea..d342e513f 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -2280,6 +2280,7 @@ func Test_nr2char() call assert_equal('a', nr2char(97, 0)) call assert_equal("\x80\xfc\b\xf4\x80\xfeX\x80\xfeX\x80\xfeX", eval('"\<M-' .. nr2char(0x100000) .. '>"')) + call assert_equal("\x80\xfc\b\xfd\x80\xfeX\x80\xfeX\x80\xfeX\x80\xfeX\x80\xfeX", eval('"\<M-' .. nr2char(0x40000000) .. '>"')) endfunc " Test for screenattr(), screenchar() and screenchars() functions |