aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-03-28 19:07:56 +0200
committerGitHub <noreply@github.com>2021-03-28 19:07:56 +0200
commit6d4a922e07e857b46d882ea96decce7c7c6e2a30 (patch)
tree04440e96a40cf8e0271d6ee8a20bfb1bc008394f /runtime
parent2ed5a776028f50177526a3fe0d7650282316195d (diff)
parent45236981d887e3a535adc0fc1e91cadce54c9463 (diff)
downloadrneovim-6d4a922e07e857b46d882ea96decce7c7c6e2a30.tar.gz
rneovim-6d4a922e07e857b46d882ea96decce7c7c6e2a30.tar.bz2
rneovim-6d4a922e07e857b46d882ea96decce7c7c6e2a30.zip
Merge pull request #14091 from euclidianAce/euclidianAce/nvim_win_hide
api: add vim.api.nvim_win_hide
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index c72381fd06..1e287281cf 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2518,6 +2518,21 @@ nvim_win_get_width({window}) *nvim_win_get_width()*
Return: ~
Width as a count of columns
+nvim_win_hide({window}) *nvim_win_hide()*
+ Closes the window and hide the buffer it contains (like
+ |:hide| with a |window-ID|).
+
+ Like |:hide| the buffer becomes hidden unless another window
+ is editing it, or 'bufhidden' is `unload` , `delete` or `wipe`
+ as opposed to |:close| or |nvim_win_close|, which will close
+ the buffer.
+
+ Attributes: ~
+ not allowed when |textlock| is active
+
+ Parameters: ~
+ {window} Window handle, or 0 for current window
+
nvim_win_is_valid({window}) *nvim_win_is_valid()*
Checks if a window is valid