diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2024-02-07 17:17:44 +0000 |
---|---|---|
committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2024-03-08 23:24:03 +0000 |
commit | 5d58136cccc760f6d95eb45b46f2ad60f06b103b (patch) | |
tree | 6b58f8337b410a8cebb00bcaddd5631ac95f67b4 /runtime/lua/vim/_meta/api.lua | |
parent | b1e24f240baeea80dcf4a3d8453fed0230fb88fd (diff) | |
download | rneovim-5d58136cccc760f6d95eb45b46f2ad60f06b103b.tar.gz rneovim-5d58136cccc760f6d95eb45b46f2ad60f06b103b.tar.bz2 rneovim-5d58136cccc760f6d95eb45b46f2ad60f06b103b.zip |
fix(api): make open_win/win_set_config check if splitting allowed
Problem: splitting is disallowed in some cases to prevent the window layout
changes while a window is closing, but it's not checked for.
Solution: check for this, and set the API error message directly.
(Also sneak in a change to tui.c that got lost from #27352; it's a char* buf,
and the memset is assuming one byte each anyway)
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
0 files changed, 0 insertions, 0 deletions