Mercurial > vim
comparison src/globals.h @ 17616:83ad219cc133 v8.1.1805
patch 8.1.1805: au_did_filetype is declared twice
commit https://github.com/vim/vim/commit/6cd57d44669c02af9195f5601b882edd435b47e8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 3 23:08:14 2019 +0200
patch 8.1.1805: au_did_filetype is declared twice
Problem: Au_did_filetype is declared twice.
Solution: Remove it from autocmd.c. (closes https://github.com/vim/vim/issues/4767)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Aug 2019 23:15:06 +0200 |
parents | e259d11e2900 |
children | a1437b8f2fac |
comparison
equal
deleted
inserted
replaced
17615:8724920596b0 | 17616:83ad219cc133 |
---|---|
422 EXTERN int autocmd_no_enter INIT(= FALSE); // *Enter autocmds disabled | 422 EXTERN int autocmd_no_enter INIT(= FALSE); // *Enter autocmds disabled |
423 EXTERN int autocmd_no_leave INIT(= FALSE); // *Leave autocmds disabled | 423 EXTERN int autocmd_no_leave INIT(= FALSE); // *Leave autocmds disabled |
424 | 424 |
425 EXTERN int modified_was_set; // did ":set modified" | 425 EXTERN int modified_was_set; // did ":set modified" |
426 EXTERN int did_filetype INIT(= FALSE); // FileType event found | 426 EXTERN int did_filetype INIT(= FALSE); // FileType event found |
427 EXTERN int au_did_filetype INIT(= FALSE); | |
428 EXTERN int keep_filetype INIT(= FALSE); // value for did_filetype when | 427 EXTERN int keep_filetype INIT(= FALSE); // value for did_filetype when |
429 // starting to execute | 428 // starting to execute |
430 // autocommands | 429 // autocommands |
430 | |
431 // Set by the apply_autocmds_group function if the given event is equal to | |
432 // EVENT_FILETYPE. Used by the readfile function in order to determine if | |
433 // EVENT_BUFREADPOST triggered the EVENT_FILETYPE. | |
434 // | |
435 // Relying on this value requires one to reset it prior calling | |
436 // apply_autocmds_group. | |
437 EXTERN int au_did_filetype INIT(= FALSE); | |
431 | 438 |
432 // When deleting the current buffer, another one must be loaded. If we know | 439 // When deleting the current buffer, another one must be loaded. If we know |
433 // which one is preferred, au_new_curbuf is set to it | 440 // which one is preferred, au_new_curbuf is set to it |
434 EXTERN bufref_T au_new_curbuf INIT(= {NULL COMMA 0 COMMA 0}); | 441 EXTERN bufref_T au_new_curbuf INIT(= {NULL COMMA 0 COMMA 0}); |
435 | 442 |