diff options
| author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-03-13 11:52:01 +0000 |
|---|---|---|
| committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-03-14 20:48:32 +0000 |
| commit | 3115e3d0d11e0e02ba9040ac1a7bb032afa762bb (patch) | |
| tree | 12bf4e87e36da984a3d3168046a330aac671a860 /runtime/lua/vim/_meta | |
| parent | 853eea859fd31e7ffcbe6d09e1281f77f279f7a0 (diff) | |
| download | rneovim-3115e3d0d11e0e02ba9040ac1a7bb032afa762bb.tar.gz rneovim-3115e3d0d11e0e02ba9040ac1a7bb032afa762bb.tar.bz2 rneovim-3115e3d0d11e0e02ba9040ac1a7bb032afa762bb.zip | |
fix(api): improve external window validation
Problem: "win" is allowed in external window configs in some cases. External
window converted to normal float can't move tabpages in one nvim_win_set_config
call. External window can't be turned into a normal split.
Solution: disallow setting "win" for external windows. Allow external window to
move tabpages, which turns it non-external. Allow external window to be turned
into a (non-external) split.
parse_win_config has more validation issues from not considering the window's
existing config enough (not from this PR). For example, zindex can be set for an
existing split if "split"/"vertical" isn't given, despite intending for that to
be an error. Plus the logic is confusing.
It could do with a refactor at some point...
Diffstat (limited to 'runtime/lua/vim/_meta')
0 files changed, 0 insertions, 0 deletions