summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_core/stringbuffer.lua
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2025-12-17 16:38:52 +0000
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2025-12-21 15:35:30 +0000
commitd788864cdea705a981aa90ec0625516466c04bec (patch)
tree5df84a1d5188e5f158484b10b2dfd9de08785565 /runtime/lua/vim/_core/stringbuffer.lua
parent756e1eb017aa5fe7fae409ede3d50ecebe785e7f (diff)
fix(api): ignore split_disallowed when opening a float
Problem: split_disallowed seemingly exists to prevent issues from changing frames to accomodate a split window, which doesn't apply to floats. Solution: remove the restriction for nvim_open_win, but only for floats. (continue to check b_locked_split though) NOTE: like before, the buffer we check b_locked_split for may not actually be the target buffer "buf", as the later call to win_set_buf can fail to switch to "buf" due to autocommands. (among other things) Maybe we could attempt to close the new window in that case (or switch to a different buffer if that also fails), but this is safer. (and simpler) Fixes #36857 (and possibly some spurious E242s I've observed from extui)
Diffstat (limited to 'runtime/lua/vim/_core/stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions