diff options
author | Florian Walch <florian@fwalch.com> | 2014-12-23 11:35:25 +0100 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2014-12-23 16:14:24 +0100 |
commit | 1e17904eb2fbb33070125dec9c3b06df06655b25 (patch) | |
tree | d42db21fe82069b8d7cc1bbb6d406ea5317f0421 /src/nvim/ex_cmds.c | |
parent | c3de63bfbc168cd8ccc53dbb3e587043c11f7276 (diff) | |
download | rneovim-1e17904eb2fbb33070125dec9c3b06df06655b25.tar.gz rneovim-1e17904eb2fbb33070125dec9c3b06df06655b25.tar.bz2 rneovim-1e17904eb2fbb33070125dec9c3b06df06655b25.zip |
vim-patch:7.4.449
Problem: Can't easily close the help window. (Chris Gaal)
Solution: Add ":helpclose". (Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=v7-4-449
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index a8d2f5589e..1880cfeb78 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5644,6 +5644,18 @@ struct sign static sign_T *first_sign = NULL; static int next_sign_typenr = 1; +/* + * ":helpclose": Close the help window + */ +void ex_helpclose(exarg_T *eap) +{ + FOR_ALL_WINDOWS_IN_TAB(win, curtab) { + if (win->w_buffer->b_help) { + win_close(win, FALSE); + break; + } + } +} static char *cmds[] = { "define", |