From 1e17904eb2fbb33070125dec9c3b06df06655b25 Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Tue, 23 Dec 2014 11:35:25 +0100 Subject: 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 --- src/nvim/ex_cmds.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/nvim/ex_cmds.c') 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", -- cgit From c4e0cd4418f5f6699d341446e791d05f9406a6bc Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Tue, 23 Dec 2014 12:12:16 +0100 Subject: vim-patch:7.4.452 Problem: Can't build with tiny features. (Tony Mechelynck) Solution: Use "return" instead of "break". https://code.google.com/p/vim/source/detail?r=v7-4-452 --- src/nvim/ex_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 1880cfeb78..3278de3561 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5645,14 +5645,14 @@ static sign_T *first_sign = NULL; static int next_sign_typenr = 1; /* - * ":helpclose": Close the help window + * ":helpclose": Close one 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; + return; } } } -- cgit