comparison src/testdir/test_tabline.vim @ 27786:fa675efa1e75 v8.2.4419

patch 8.2.4419: illegal memory access when using 20 highlights Commit: https://github.com/vim/vim/commit/a493b6506b67887a1cc2d1c00a896598c3b2d445 Author: Brandon Richardson <brandon.richardson@siemens.com> Date: Sat Feb 19 11:45:03 2022 +0000 patch 8.2.4419: illegal memory access when using 20 highlights Problem: Illegal memory access when using exactly 20 highlights. Solution: Add one more item in the array. (Brandon Richardson, closes #9800)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Feb 2022 13:00:03 +0100
parents 08940efa6b4e
children b37b74ea8dee
comparison
equal deleted inserted replaced
27785:309353f3efd3 27786:fa675efa1e75
132 132
133 tabclose 133 tabclose
134 set tabline= 134 set tabline=
135 endfunc 135 endfunc
136 136
137 " When there are exactly 20 tabline format items (the exact size of the
138 " initial tabline items array), test that we don't write beyond the size
139 " of the array.
140 func Test_tabline_20_format_items_no_overrun()
141 set showtabline=2
137 142
143 let tabline = repeat('%#StatColorHi2#', 20)
144 let &tabline = tabline
145 redrawtabline
146
147 set showtabline& tabline&
148 endfunc
138 149
139 " vim: shiftwidth=2 sts=2 expandtab 150 " vim: shiftwidth=2 sts=2 expandtab