Permalink
Browse files

patch 8.0.0704: problems with autocommands when opening help

Problem:    Problems with autocommands when opening help.
Solution:   Avoid using invalid "varp" value.  Allow using :wincmd if buffer
            is locked. (closes #1806, closes #1804)
  • Loading branch information...
brammool committed Jul 9, 2017
1 parent faf29d7 commit 163095f088a7c29710a16c75bb56229dd3b4116a
Showing with 6 additions and 1 deletion.
  1. +1 −1 src/ex_cmds.h
  2. +3 −0 src/option.c
  3. +2 −0 src/version.c
View
@@ -1625,7 +1625,7 @@ EX(CMD_winsize, "winsize", ex_winsize,
EXTRA|NEEDARG|TRLBAR,
ADDR_LINES),
EX(CMD_wincmd, "wincmd", ex_wincmd,
NEEDARG|WORD1|RANGE|NOTADR,
NEEDARG|WORD1|RANGE|NOTADR|CMDWIN,
ADDR_WINDOWS),
EX(CMD_windo, "windo", ex_listdo,
NEEDARG|EXTRA|NOTRLCOM|RANGE|NOTADR|DFLALL,
View
@@ -7570,6 +7570,9 @@ did_set_string_option(
did_filetype = TRUE;
apply_autocmds(EVENT_FILETYPE, curbuf->b_p_ft,
curbuf->b_fname, TRUE, curbuf);
/* Just in case the old "curbuf" is now invalid. */
if (varp != &(curbuf->b_p_ft))
varp = NULL;
}
}
#endif
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
704,
/**/
703,
/**/

0 comments on commit 163095f

Please sign in to comment.