patch 9.0.2065: EXPAND flag set for filetype option

Commit: 
https://github.com/vim/vim/commit/3932072ab435eb171ab55b2a2c0185358cd0d7bf
Author: Doug Kearns <[email protected]>
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 <[email protected]>
    Co-authored-by: Doug Kearns <[email protected]>

diff --git a/src/optiondefs.h b/src/optiondefs.h
index d5887e1d4..10f2aff13 100644
--- a/src/optiondefs.h
+++ b/src/optiondefs.h
@@ -943,7 +943,7 @@ static struct vimoption options[] =
                                    (char_u *)FALSE,
 #endif
                                        (char_u *)0L} SCTX_INIT},
-    {"filetype",    "ft",   
P_STRING|P_EXPAND|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
+    {"filetype",    "ft",   P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
                            (char_u *)&p_ft, PV_FT,
                            did_set_filetype_or_syntax, NULL,
                            {(char_u *)"", (char_u *)0L}
diff --git a/src/version.c b/src/version.c
index 7651bcc46..9198a788b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2065,
 /**/
     2064,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qvj6s-0059y3-F4%40256bit.org.

Raspunde prin e-mail lui