diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-07 06:37:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 06:37:54 +0800 |
commit | 4ffe5d018919d3fbea21e667f09f14b9751f9cd5 (patch) | |
tree | 1f6e5546aa35b0c383b592ac75ab4d9382c65d76 /src/nvim/testdir | |
parent | 664efa497e4e3d79d2e4ab486acbf1471b2389b0 (diff) | |
download | rneovim-4ffe5d018919d3fbea21e667f09f14b9751f9cd5.tar.gz rneovim-4ffe5d018919d3fbea21e667f09f14b9751f9cd5.tar.bz2 rneovim-4ffe5d018919d3fbea21e667f09f14b9751f9cd5.zip |
vim-patch:8.2.5063: error for a command may go over the end of IObuff (#19260)
Problem: Error for a command may go over the end of IObuff.
Solution: Truncate the message.
https://github.com/vim/vim/commit/44a3f3353e0407e9fffee138125a6927d1c9e7e5
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 8ee894c35f..b00764e0dd 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -1361,4 +1361,9 @@ func Test_recursive_register() call assert_equal('yes', caught) endfunc +func Test_long_error_message() + " the error should be truncated, not overrun IObuff + silent! norm Q00000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +endfunc + " vim: shiftwidth=2 sts=2 expandtab |