diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2023-07-24 14:19:01 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2023-07-26 20:44:46 +0100 |
commit | 472271199e483d3f23d62c272b20c5290eec5474 (patch) | |
tree | 9965e5a35f07a77365d48148c251a52afd2b4d8c /runtime | |
parent | 5d921e28c1cc33eced22bbfa823460ca241e3dc1 (diff) | |
download | rneovim-472271199e483d3f23d62c272b20c5290eec5474.tar.gz rneovim-472271199e483d3f23d62c272b20c5290eec5474.tar.bz2 rneovim-472271199e483d3f23d62c272b20c5290eec5474.zip |
feat(api): allow win_hide to close cmdwin or non-previous windows
This aligns its behaviour better with `nvim_win_close`.
Note that `:hide` is actually incapable of closing the cmdwin, unlike `:close`
and `:quit`, so this is a bit of a difference in behaviour.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 1e5b6b0b40..417137c166 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2897,7 +2897,7 @@ nvim_win_hide({window}) *nvim_win_hide()* or |nvim_win_close()|, which will close the buffer. Attributes: ~ - not allowed when |textlock| is active or in the |cmdwin| + not allowed when |textlock| is active Parameters: ~ • {window} Window handle, or 0 for current window |