aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/vimhelp.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2024-02-06 01:13:35 +0000
committerGitHub <noreply@github.com>2024-02-06 01:13:35 +0000
commitb3bda2f0438da44a0a74fd5d64d6eecdac98d691 (patch)
tree5688649579e6c4f01613759ef72ff8c7a87b1695 /runtime/lua/vim/vimhelp.lua
parentabfcdd9bf42eae5fba0dfb647e48ecf4e1c78293 (diff)
downloadrneovim-b3bda2f0438da44a0a74fd5d64d6eecdac98d691.tar.gz
rneovim-b3bda2f0438da44a0a74fd5d64d6eecdac98d691.tar.bz2
rneovim-b3bda2f0438da44a0a74fd5d64d6eecdac98d691.zip
fix(tui): `space_buf` overflow when clearing screen (#27352)
Problem: `tui->space_buf` may be smaller than the width of the TUI or widest grid, causing an overflow when calling `tui_grid_clear` if `print_spaces` is called from `clear_region` (clears the TUI's screen since #23428). Solution: resize `space_buf` to be wide enough to fit the TUI or widest grid. Didn't bother shrinking the allocation if the max widths decrease.
Diffstat (limited to 'runtime/lua/vim/vimhelp.lua')
0 files changed, 0 insertions, 0 deletions