diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-09-19 19:39:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-09-19 19:39:34 +0200 |
commit | 5bfa2ed6e47a2bc4e15e43cf6504e97401f2e5e6 (patch) | |
tree | 754dd26f767690e7118d91b21d647df66f25572e /src/ex_cmds.c | |
parent | 4ee40b051545c3749d9d215f3500977792d6db72 (diff) | |
download | vim-git-5bfa2ed6e47a2bc4e15e43cf6504e97401f2e5e6.tar.gz |
updated for version 7.4.449v7.4.449
Problem: Can't easily close the help window. (Chris Gaal)
Solution: Add ":helpclose". (Christian Brabandt)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 2a81eb739..4ae996c94 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -5899,6 +5899,24 @@ erret: vim_free(tag); } +/* + * ":helpclose": Close the help window + */ + void +ex_helpclose(eap) + exarg_T *eap UNUSED; +{ + win_T *win; + + FOR_ALL_WINDOWS(win) + { + if (win->w_buffer->b_help) + { + win_close(win, FALSE); + break; + } + } +} #if defined(FEAT_MULTI_LANG) || defined(PROTO) /* |