aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-02-03 00:09:43 +0100
committerGitHub <noreply@github.com>2025-02-02 15:09:43 -0800
commit87e806186c721f12c338af86677b6d1e6e2fa44a (patch)
treec6ad38ce14eafb4dfb9ddb70d7ec60c9c3809111 /src/nvim/eval.lua
parent77be44563acb64a481d48f45c8dbbfca2d7db415 (diff)
downloadrneovim-87e806186c721f12c338af86677b6d1e6e2fa44a.tar.gz
rneovim-87e806186c721f12c338af86677b6d1e6e2fa44a.tar.bz2
rneovim-87e806186c721f12c338af86677b6d1e6e2fa44a.zip
fix(statusline): overwriting stl_items with nvim_eval_statusline() {-item #32265
Problem: When an evaluation {-item calls `nvim_eval_statusline()`, that nested call may overwrite the same memory used for `stl_items`. Solution: Make `curitem` static and use it to compute an offset to avoid overwriting `stl_items` in nested calls to `build_stl_str_hl()`. Move miscellaneous statusline tests into `describe()` block.
Diffstat (limited to 'src/nvim/eval.lua')
0 files changed, 0 insertions, 0 deletions