@@ -287,10 +287,8 @@ static int p_bin;
287287#ifdef FEAT_MBYTE
288288static int p_bomb ;
289289#endif
290- #if defined(FEAT_QUICKFIX )
291290static char_u * p_bh ;
292291static char_u * p_bt ;
293- #endif
294292static int p_bl ;
295293static int p_ci ;
296294#ifdef FEAT_CINDENT
@@ -720,26 +718,16 @@ static struct vimoption options[] =
720718#endif
721719 SCRIPTID_INIT },
722720 {"bufhidden" , "bh" , P_STRING |P_ALLOCED |P_VI_DEF |P_NOGLOB ,
723- #if defined(FEAT_QUICKFIX )
724721 (char_u * )& p_bh , PV_BH ,
725722 {(char_u * )"" , (char_u * )0L }
726- #else
727- (char_u * )NULL , PV_NONE ,
728- {(char_u * )0L , (char_u * )0L }
729- #endif
730723 SCRIPTID_INIT },
731724 {"buflisted" , "bl" , P_BOOL |P_VI_DEF |P_NOGLOB ,
732725 (char_u * )& p_bl , PV_BL ,
733726 {(char_u * )1L , (char_u * )0L }
734727 SCRIPTID_INIT },
735728 {"buftype" , "bt" , P_STRING |P_ALLOCED |P_VI_DEF |P_NOGLOB ,
736- #if defined(FEAT_QUICKFIX )
737729 (char_u * )& p_bt , PV_BT ,
738730 {(char_u * )"" , (char_u * )0L }
739- #else
740- (char_u * )NULL , PV_NONE ,
741- {(char_u * )0L , (char_u * )0L }
742- #endif
743731 SCRIPTID_INIT },
744732 {"casemap" , "cmp" , P_STRING |P_VI_DEF |P_ONECOMMA |P_NODUP ,
745733#ifdef FEAT_MBYTE
@@ -3254,14 +3242,12 @@ static char *(p_debug_values[]) = {"msg", "throw", "beep", NULL};
32543242#ifdef FEAT_WINDOWS
32553243static char * (p_ead_values []) = {"both" , "ver" , "hor" , NULL };
32563244#endif
3257- #if defined(FEAT_QUICKFIX )
3258- # ifdef FEAT_AUTOCMD
3259- static char * (p_buftype_values []) = {"nofile" , "nowrite" , "quickfix" , "help" , "acwrite" , NULL };
3260- # else
3261- static char * (p_buftype_values []) = {"nofile" , "nowrite" , "quickfix" , "help" , NULL };
3262- # endif
3263- static char * (p_bufhidden_values []) = {"hide" , "unload" , "delete" , "wipe" , NULL };
3245+ #ifdef FEAT_AUTOCMD
3246+ static char * (p_buftype_values []) = {"nofile" , "nowrite" , "quickfix" , "help" , "terminal" , "acwrite" , NULL };
3247+ #else
3248+ static char * (p_buftype_values []) = {"nofile" , "nowrite" , "quickfix" , "help" , "terminal" , NULL };
32643249#endif
3250+ static char * (p_bufhidden_values []) = {"hide" , "unload" , "delete" , "wipe" , NULL };
32653251static char * (p_bs_values []) = {"indent" , "eol" , "start" , NULL };
32663252#ifdef FEAT_FOLDING
32673253static char * (p_fdm_values []) = {"manual" , "expr" , "marker" , "indent" , "syntax" ,
@@ -5649,10 +5635,8 @@ check_options(void)
56495635 void
56505636check_buf_options (buf_T * buf )
56515637{
5652- #if defined(FEAT_QUICKFIX )
56535638 check_string_option (& buf -> b_p_bh );
56545639 check_string_option (& buf -> b_p_bt );
5655- #endif
56565640#ifdef FEAT_MBYTE
56575641 check_string_option (& buf -> b_p_fenc );
56585642#endif
@@ -7115,7 +7099,6 @@ did_set_string_option(
71157099 }
71167100#endif
71177101
7118- #ifdef FEAT_QUICKFIX
71197102 /* When 'bufhidden' is set, check for valid value. */
71207103 else if (gvarp == & p_bh )
71217104 {
@@ -7130,20 +7113,19 @@ did_set_string_option(
71307113 errmsg = e_invarg ;
71317114 else
71327115 {
7133- # ifdef FEAT_WINDOWS
7116+ #ifdef FEAT_WINDOWS
71347117 if (curwin -> w_status_height )
71357118 {
71367119 curwin -> w_redr_status = TRUE;
71377120 redraw_later (VALID );
71387121 }
7139- # endif
7122+ #endif
71407123 curbuf -> b_help = (curbuf -> b_p_bt [0 ] == 'h' );
7141- # ifdef FEAT_TITLE
7124+ #ifdef FEAT_TITLE
71427125 redraw_titles ();
7143- # endif
7126+ #endif
71447127 }
71457128 }
7146- #endif
71477129
71487130#ifdef FEAT_STL_OPT
71497131 /* 'statusline' or 'rulerformat' */
@@ -10722,10 +10704,8 @@ get_varp(struct vimoption *p)
1072210704#ifdef FEAT_MBYTE
1072310705 case PV_BOMB : return (char_u * )& (curbuf -> b_p_bomb );
1072410706#endif
10725- #if defined(FEAT_QUICKFIX )
1072610707 case PV_BH : return (char_u * )& (curbuf -> b_p_bh );
1072710708 case PV_BT : return (char_u * )& (curbuf -> b_p_bt );
10728- #endif
1072910709 case PV_BL : return (char_u * )& (curbuf -> b_p_bl );
1073010710 case PV_CI : return (char_u * )& (curbuf -> b_p_ci );
1073110711#ifdef FEAT_CINDENT
@@ -11119,10 +11099,8 @@ buf_copy_options(buf_T *buf, int flags)
1111911099 }
1112011100 if (buf -> b_p_ff != NULL )
1112111101 buf -> b_start_ffc = * buf -> b_p_ff ;
11122- #if defined(FEAT_QUICKFIX )
1112311102 buf -> b_p_bh = empty_option ;
1112411103 buf -> b_p_bt = empty_option ;
11125- #endif
1112611104 }
1112711105 else
1112811106 free_buf_options (buf , FALSE);
@@ -11284,10 +11262,8 @@ buf_copy_options(buf_T *buf, int flags)
1128411262 did_isk = TRUE;
1128511263 buf -> b_p_ts = p_ts ;
1128611264 buf -> b_help = FALSE;
11287- #ifdef FEAT_QUICKFIX
1128811265 if (buf -> b_p_bt [0 ] == 'h' )
1128911266 clear_string_option (& buf -> b_p_bt );
11290- #endif
1129111267 buf -> b_p_ma = p_ma ;
1129211268 }
1129311269 }
0 commit comments