diff src/optiondefs.h @ 23821:bfc1ae959d9d v8.2.2452

patch 8.2.2452: no completion for the 'filetype' option Commit: https://github.com/vim/vim/commit/d5e8c92816f35ea1a9298084238a08f35958baa6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 2 21:10:01 2021 +0100 patch 8.2.2452: no completion for the 'filetype' option Problem: No completion for the 'filetype' option. Solution: Add filetype completion. (Martin Tournoij, closes https://github.com/vim/vim/issues/7747)
author Bram Moolenaar <Bram@vim.org>
date Tue, 02 Feb 2021 21:15:03 +0100
parents f98939164e91
children 4549133c1e77
line wrap: on
line diff
--- a/src/optiondefs.h
+++ b/src/optiondefs.h
@@ -946,7 +946,7 @@ static struct vimoption options[] =
 				    (char_u *)FALSE,
 #endif
 					(char_u *)0L} SCTX_INIT},
-    {"filetype",    "ft",   P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
+    {"filetype",    "ft",   P_STRING|P_EXPAND|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
 			    (char_u *)&p_ft, PV_FT,
 			    {(char_u *)"", (char_u *)0L}
 			    SCTX_INIT},