diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2024-02-06 01:13:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 01:13:35 +0000 |
commit | b3bda2f0438da44a0a74fd5d64d6eecdac98d691 (patch) | |
tree | 5688649579e6c4f01613759ef72ff8c7a87b1695 /runtime/lua/vim/ui.lua | |
parent | abfcdd9bf42eae5fba0dfb647e48ecf4e1c78293 (diff) | |
download | rneovim-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/ui.lua')
0 files changed, 0 insertions, 0 deletions