diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2023-07-23 23:10:28 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2023-07-26 20:44:46 +0100 |
commit | 5d921e28c1cc33eced22bbfa823460ca241e3dc1 (patch) | |
tree | ad06c2e4edc74e687f213f133557a8e085100aac /test/functional/vimscript/api_functions_spec.lua | |
parent | 6b4970f6e0ac36021b2a8bd0533f5078040d31f7 (diff) | |
download | rneovim-5d921e28c1cc33eced22bbfa823460ca241e3dc1.tar.gz rneovim-5d921e28c1cc33eced22bbfa823460ca241e3dc1.tar.bz2 rneovim-5d921e28c1cc33eced22bbfa823460ca241e3dc1.zip |
feat(api): allow win_close in cmdwin to close wins except previous
Disallow closing the previous window from `nvim_win_close`, as this will cause
issues.
Again, no telling how safe this is. It also requires exposing old_curwin. :/
Also note that it's possible for the `&cmdheight` to change if, for example,
there are 2 tabpages and `nvim_win_close` is used to close the last window in
the other tabpage while `&stal` is 1. This is addressed in a later commit.
Diffstat (limited to 'test/functional/vimscript/api_functions_spec.lua')
0 files changed, 0 insertions, 0 deletions