Mercurial > vim
comparison src/option.c @ 6949:1e621b31948b v7.4.793
patch 7.4.793
Problem: Can't specify when not to ring the bell.
Solution: Add the 'belloff' option. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 Jul 2015 17:53:25 +0200 |
parents | b63f09edb493 |
children | a958ac497a81 |
comparison
equal
deleted
inserted
replaced
6948:50dfc96920a8 | 6949:1e621b31948b |
---|---|
630 # endif | 630 # endif |
631 #endif | 631 #endif |
632 {"beautify", "bf", P_BOOL|P_VI_DEF, | 632 {"beautify", "bf", P_BOOL|P_VI_DEF, |
633 (char_u *)NULL, PV_NONE, | 633 (char_u *)NULL, PV_NONE, |
634 {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, | 634 {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, |
635 {"belloff", "bo", P_STRING|P_VI_DEF|P_COMMA|P_NODUP, | |
636 (char_u *)&p_bo, PV_NONE, | |
637 {(char_u *)"", (char_u *)0L} SCRIPTID_INIT}, | |
635 {"binary", "bin", P_BOOL|P_VI_DEF|P_RSTAT, | 638 {"binary", "bin", P_BOOL|P_VI_DEF|P_RSTAT, |
636 (char_u *)&p_bin, PV_BIN, | 639 (char_u *)&p_bin, PV_BIN, |
637 {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, | 640 {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, |
638 {"bioskey", "biosk",P_BOOL|P_VI_DEF, | 641 {"bioskey", "biosk",P_BOOL|P_VI_DEF, |
639 #ifdef MSDOS | 642 #ifdef MSDOS |
5321 | 5324 |
5322 #ifdef FEAT_MBYTE | 5325 #ifdef FEAT_MBYTE |
5323 (void)opt_strings_flags(p_cmp, p_cmp_values, &cmp_flags, TRUE); | 5326 (void)opt_strings_flags(p_cmp, p_cmp_values, &cmp_flags, TRUE); |
5324 #endif | 5327 #endif |
5325 (void)opt_strings_flags(p_bkc, p_bkc_values, &bkc_flags, TRUE); | 5328 (void)opt_strings_flags(p_bkc, p_bkc_values, &bkc_flags, TRUE); |
5329 (void)opt_strings_flags(p_bo, p_bo_values, &bo_flags, TRUE); | |
5326 #ifdef FEAT_SESSION | 5330 #ifdef FEAT_SESSION |
5327 (void)opt_strings_flags(p_ssop, p_ssop_values, &ssop_flags, TRUE); | 5331 (void)opt_strings_flags(p_ssop, p_ssop_values, &ssop_flags, TRUE); |
5328 (void)opt_strings_flags(p_vop, p_ssop_values, &vop_flags, TRUE); | 5332 (void)opt_strings_flags(p_vop, p_ssop_values, &vop_flags, TRUE); |
5329 #endif | 5333 #endif |
5330 #ifdef FEAT_FOLDING | 5334 #ifdef FEAT_FOLDING |
6993 { | 6997 { |
6994 if (*p_bs >'2' || p_bs[1] != NUL) | 6998 if (*p_bs >'2' || p_bs[1] != NUL) |
6995 errmsg = e_invarg; | 6999 errmsg = e_invarg; |
6996 } | 7000 } |
6997 else if (check_opt_strings(p_bs, p_bs_values, TRUE) != OK) | 7001 else if (check_opt_strings(p_bs, p_bs_values, TRUE) != OK) |
7002 errmsg = e_invarg; | |
7003 } | |
7004 else if (varp == &p_bo) | |
7005 { | |
7006 if (opt_strings_flags(p_bo, p_bo_values, &bo_flags, TRUE) != OK) | |
6998 errmsg = e_invarg; | 7007 errmsg = e_invarg; |
6999 } | 7008 } |
7000 | 7009 |
7001 #ifdef FEAT_MBYTE | 7010 #ifdef FEAT_MBYTE |
7002 /* 'casemap' */ | 7011 /* 'casemap' */ |