mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch-8.0.0649 and vim-patch-8.0.0650: autocmd open help 2 times
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user