neovim/neovim — pull request #1724 by fwalch (2014-12-23 14:07:20+00:00)
Title: [RFC] vim-patch:7.4.449, vim-patch:7.4.452

### 7.4.449

```
Problem: Can't easily close the help window. (Chris Gaal)
Solution: Add ":helpclose". (Christian Brabandt)
```

(.pro file removed)
```diff
diff --git a/runtime/doc/helphelp.txt b/runtime/doc/helphelp.txt
--- a/runtime/doc/helphelp.txt
+++ b/runtime/doc/helphelp.txt
@@ -96,6 +96,9 @@ 1. Help commands	*online-help*
find a tag in a file with the same language as the
current file. See |help-translated|.

+	*:helpc* *:helpclose*
+:helpc[lose] Close one help window.
+
*:helpg* *:helpgrep*
:helpg[rep] {pattern}[@xx]
Search all help text files and make a list of lines
diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt
--- a/runtime/doc/index.txt
+++ b/runtime/doc/index.txt
@@ -1244,6 +1244,7 @@ tag	command	action ~
|:gvim|	:gv[im]	start the GUI
|:hardcopy|	:ha[rdcopy]	send text to the printer
|:help|	:h[elp]	open a help window
+|:helpclose|	:helpc[lose]	close one help window
|:helpfind|	:helpf[ind]	dialog to open a help window
|:helpgrep|	:helpg[rep]	like ":grep" but searches help files
|:helptags|	:helpt[ags]	generate help tags for a directory
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/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)
/*
diff --git a/src/nvim/ex_cmds.h b/src/nvim/ex_cmds.h
--- a/src/nvim/ex_cmds.h
+++ b/src/nvim/ex_cmds.h
@@ -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,
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 449,
+/**/
448,
/**/
447,
```

### 7.4.452

```
Problem: Can't build with tiny features. (Tony Mechelynck)
Solution: Use "return" instead of "break".
```

```diff
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -5900,7 +5900,7 @@ erret:
}

/*
- * ":helpclose": Close the help window
+ * ":helpclose": Close one help window
*/
void
ex_helpclose(eap)
@@ -5913,7 +5913,7 @@ ex_helpclose(eap)
if (win->w_buffer->b_help)
{
win_close(win, FALSE);
-	break;
+	return;
}
}
}
diff --git a/src/nvim/version.c b/src/nvim/version.c
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 452,
+/**/
451,
/**/
450,
```