Mercurial > vim
diff src/testdir/test_ex_mode.vim @ 27372:81d391f7c189 v8.2.4214
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex mode
Commit: https://github.com/vim/vim/commit/85b6747abc15a7a81086db31289cf1b8b17e6cb1
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 25 11:55:02 2022 +0000
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex mode
Problem: Illegal memory access with large 'tabstop' in Ex mode.
Solution: Allocate enough memory.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Jan 2022 13:00:06 +0100 |
parents | 75e6d917696e |
children | 0ae0946ebf9b |
line wrap: on
line diff
--- a/src/testdir/test_ex_mode.vim +++ b/src/testdir/test_ex_mode.vim @@ -241,4 +241,14 @@ func Test_ex_mode_count_overflow() call delete('Xexmodescript') endfunc +func Test_ex_mode_large_indent() + new + set ts=500 ai + call setline(1, "\t") + exe "normal gQi\<CR>." + set ts=8 noai + bwipe! +endfunc + + " vim: shiftwidth=2 sts=2 expandtab