aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/_meta/vimfn.gen.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.gen.lua b/runtime/lua/vim/_meta/vimfn.gen.lua
index 6c439e5c8c..79577042b8 100644
--- a/runtime/lua/vim/_meta/vimfn.gen.lua
+++ b/runtime/lua/vim/_meta/vimfn.gen.lua
@@ -1528,10 +1528,11 @@ function vim.fn.dictwatcheradd(dict, pattern, callback) end
function vim.fn.dictwatcherdel(dict, pattern, callback) end
--- Returns |TRUE| when autocommands are being executed and the
---- FileType event has been triggered at least once. Can be used
---- to avoid triggering the FileType event again in the scripts
---- that detect the file type. |FileType|
+--- FileType event triggered at least once for a buffer with
+--- a non-empty 'filetype'. Can be used to avoid triggering
+--- the FileType event again in the |ftdetect| scripts. |FileType|
--- Returns |FALSE| when `:setf FALLBACK` was used.
+---
--- When editing another file, the counter is reset, thus this
--- really checks if the FileType event has been triggered for the
--- current buffer. This allows an autocommand that starts