0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.449

Problem:    Can't easily close the help window. (Chris Gaal)
Solution:   Add ":helpclose". (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2014-09-19 19:39:34 +02:00
parent 4ee40b0515
commit 5bfa2ed6e4
6 changed files with 27 additions and 0 deletions

View File

@@ -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)
/*

View File

@@ -417,6 +417,8 @@ EX(CMD_gvim, "gvim", ex_gui,
BANG|FILES|EDITCMD|ARGOPT|TRLBAR|CMDWIN),
EX(CMD_help, "help", ex_help,
BANG|EXTRA|NOTRLCOM),
EX(CMD_helpclose, "helpclose", ex_helpclose,
RANGE|NOTADR|COUNT|TRLBAR),
EX(CMD_helpfind, "helpfind", ex_helpfind,
EXTRA|NOTRLCOM),
EX(CMD_helpgrep, "helpgrep", ex_helpgrep,

View File

@@ -44,6 +44,7 @@ void write_viminfo_sub_string __ARGS((FILE *fp));
void free_old_sub __ARGS((void));
int prepare_tagpreview __ARGS((int undo_sync));
void ex_help __ARGS((exarg_T *eap));
void ex_helpclose __ARGS((exarg_T *eap));
char_u *check_help_lang __ARGS((char_u *arg));
int help_heuristic __ARGS((char_u *matched_string, int offset, int wrong_case));
int find_help_tags __ARGS((char_u *arg, int *num_matches, char_u ***matches, int keep_lang));

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
449,
/**/
448,
/**/