aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-06 05:08:15 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-06 06:15:35 -0400
commitdc15dcffadca790a7b274110c0b356dcc22dfb82 (patch)
treeafe67cd235b58667aa05105c57a3a778075cbec2 /src/nvim/ex_cmds.c
parentbb519fb261edf03be28f1a9150bdba58ed9d241e (diff)
downloadrneovim-dc15dcffadca790a7b274110c0b356dcc22dfb82.tar.gz
rneovim-dc15dcffadca790a7b274110c0b356dcc22dfb82.tar.bz2
rneovim-dc15dcffadca790a7b274110c0b356dcc22dfb82.zip
vim-patch:8.0.0782: using freed memory in quickfix code
Problem: Using freed memory in quickfix code. (Dominique Pelle) Solution: Handle a help window differently. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/d28cc3f55d4a5a980f6ac6fa682382822a223720
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index a9e9364dc3..4d32b76eb0 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4514,7 +4514,7 @@ void ex_help(exarg_T *eap)
* Re-use an existing help window or open a new one.
* Always open a new one for ":tab help".
*/
- if (!curwin->w_buffer->b_help
+ if (!bt_help(curwin->w_buffer)
|| cmdmod.tab != 0
) {
if (cmdmod.tab != 0) {
@@ -4522,7 +4522,7 @@ void ex_help(exarg_T *eap)
} else {
wp = NULL;
FOR_ALL_WINDOWS_IN_TAB(wp2, curtab) {
- if (wp2->w_buffer != NULL && wp2->w_buffer->b_help) {
+ if (bt_help(wp2->w_buffer)) {
wp = wp2;
break;
}
@@ -5509,7 +5509,7 @@ static int next_sign_typenr = 1;
void ex_helpclose(exarg_T *eap)
{
FOR_ALL_WINDOWS_IN_TAB(win, curtab) {
- if (win->w_buffer->b_help) {
+ if (bt_help(win->w_buffer)) {
win_close(win, FALSE);
return;
}