vim-patch-8.0.0649 and vim-patch-8.0.0650: autocmd open help 2 times

This commit is contained in:
Nimit Bhardwaj
2018-02-14 19:48:01 +05:30
parent 09b51bbf87
commit e9134421ab
4 changed files with 38 additions and 7 deletions

View File

@@ -4864,7 +4864,9 @@ void fix_help_buffer(void)
char_u *rt;
// Set filetype to "help".
set_option_value("ft", 0L, "help", OPT_LOCAL);
if (STRCMP(curbuf->b_p_ft, "help") != 0) {
set_option_value("ft", 0L, "help", OPT_LOCAL);
}
if (!syntax_present(curwin)) {
for (lnum = 1; lnum <= curbuf->b_ml.ml_line_count; ++lnum) {