comparison src/optiondefs.h @ 33652:0a3895772dce v9.0.2065

patch 9.0.2065: EXPAND flag set for filetype option Commit: https://github.com/vim/vim/commit/3932072ab435eb171ab55b2a2c0185358cd0d7bf Author: Doug Kearns <dougkearns@gmail.com> Date: Wed Oct 25 20:54:00 2023 +0200 patch 9.0.2065: EXPAND flag set for filetype option Problem: EXPAND flag set for filetype option Solution: Remove P_EXPAND flag from the 'filetype' option Remove P_EXPAND flag from the 'filetype' option Problem: P_EXPAND flag is erroneously set for 'filetype' option Solution: Remove the P_EXPAND flag This flag is used by string options that accept file path values. See :help set_env. This appears to have been included in d5e8c92 and resulted from an incorrect implementation of 'filetype' completion. See #12900 for a small discussion. related: #12900 closes: #13416 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Wed, 25 Oct 2023 21:00:06 +0200
parents 403d57b06231
children 7777043c9393
comparison
equal deleted inserted replaced
33651:d42d5db1eaa6 33652:0a3895772dce
941 (char_u *)TRUE, 941 (char_u *)TRUE,
942 #else 942 #else
943 (char_u *)FALSE, 943 (char_u *)FALSE,
944 #endif 944 #endif
945 (char_u *)0L} SCTX_INIT}, 945 (char_u *)0L} SCTX_INIT},
946 {"filetype", "ft", P_STRING|P_EXPAND|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME, 946 {"filetype", "ft", P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
947 (char_u *)&p_ft, PV_FT, 947 (char_u *)&p_ft, PV_FT,
948 did_set_filetype_or_syntax, NULL, 948 did_set_filetype_or_syntax, NULL,
949 {(char_u *)"", (char_u *)0L} 949 {(char_u *)"", (char_u *)0L}
950 SCTX_INIT}, 950 SCTX_INIT},
951 {"fillchars", "fcs", P_STRING|P_VI_DEF|P_RALL|P_ONECOMMA|P_NODUP, 951 {"fillchars", "fcs", P_STRING|P_VI_DEF|P_RALL|P_ONECOMMA|P_NODUP,