comparison src/testdir/test_textformat.vim @ 34892:58416c1d1b94 v9.1.0309

patch 9.1.0309: crash when 'textwidth' > MAX_INT Commit: https://github.com/vim/vim/commit/bba79808cb115d4f54063e8aa40628a927eab44e Author: Christian Brabandt <cb@256bit.org> Date: Thu Apr 11 22:54:44 2024 +0200 patch 9.1.0309: crash when 'textwidth' > MAX_INT Problem: crash when 'textwidth' > MAX_INT (after vv9.1.0055) (Zoltan Balogh) Solution: limit textwidth to MAX_INT fixes: #14482 closes: #14489 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 11 Apr 2024 23:15:03 +0200
parents 5478246aa14b
children 6cb7e7ee8477
comparison
equal deleted inserted replaced
34891:ce3e5cfe3e40 34892:58416c1d1b94
1301 1301
1302 bwipe! 1302 bwipe!
1303 set encoding=utf8 1303 set encoding=utf8
1304 endfunc 1304 endfunc
1305 1305
1306 " This was crashing Vim
1307 func Test_textwdith_overflow()
1308 new
1309 setl tw=999999999
1310 normal 10ig
1311 call feedkeys('a ab cd ef', 'xt')
1312 bw!
1313 endfunc
1314
1306 " vim: shiftwidth=2 sts=2 expandtab 1315 " vim: shiftwidth=2 sts=2 expandtab