Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
27371:718b899f73ea | 27372:81d391f7c189 |
---|---|
239 | 239 |
240 call delete('Xdidexmode') | 240 call delete('Xdidexmode') |
241 call delete('Xexmodescript') | 241 call delete('Xexmodescript') |
242 endfunc | 242 endfunc |
243 | 243 |
244 func Test_ex_mode_large_indent() | |
245 new | |
246 set ts=500 ai | |
247 call setline(1, "\t") | |
248 exe "normal gQi\<CR>." | |
249 set ts=8 noai | |
250 bwipe! | |
251 endfunc | |
252 | |
253 | |
244 " vim: shiftwidth=2 sts=2 expandtab | 254 " vim: shiftwidth=2 sts=2 expandtab |