Mercurial > vim
comparison src/testdir/test_messages.vim @ 26642:7fe649a64777 v8.2.3850
patch 8.2.3850: illegal memory access when displaying a partial
Commit: https://github.com/vim/vim/commit/2de5371a755abd287dab6ff544924715a76d4abe
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 19 11:06:35 2021 +0000
patch 8.2.3850: illegal memory access when displaying a partial
Problem: Illegal memory access when displaying a partial.
Solution: Terminate the string with a NUL. (closes https://github.com/vim/vim/issues/9371)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Dec 2021 12:15:03 +0100 |
parents | 72e9b861bc92 |
children | a3f38923c037 |
comparison
equal
deleted
inserted
replaced
26641:0772d9367e2d | 26642:7fe649a64777 |
---|---|
335 " clean up | 335 " clean up |
336 call StopVimInTerminal(buf) | 336 call StopVimInTerminal(buf) |
337 call delete('Xtest_quit_message') | 337 call delete('Xtest_quit_message') |
338 endfunc | 338 endfunc |
339 | 339 |
340 " this was missing a terminating NUL | |
341 func Test_echo_string_partial() | |
342 function CountSpaces() | |
343 endfunction | |
344 echomsg function('CountSpaces', [#{aaaaaaaaaaa: v:false, bbbbbbbbbbbb: '', ccccccccccc: ['ab', 'cd']}]) | |
345 endfunc | |
346 | |
340 " vim: shiftwidth=2 sts=2 expandtab | 347 " vim: shiftwidth=2 sts=2 expandtab |