Mercurial > vim
comparison src/option.c @ 258:f93df7322443
updated for version 7.0070
author | vimboss |
---|---|
date | Sat, 23 Apr 2005 20:52:00 +0000 |
parents | 73354c21f1e4 |
children | 8fa8d7964cf1 |
comparison
equal
deleted
inserted
replaced
257:51a4d1c2a95b | 258:f93df7322443 |
---|---|
5656 else if (varp == &p_cb) | 5656 else if (varp == &p_cb) |
5657 errmsg = check_clipboard_option(); | 5657 errmsg = check_clipboard_option(); |
5658 #endif | 5658 #endif |
5659 | 5659 |
5660 #ifdef FEAT_SYN_HL | 5660 #ifdef FEAT_SYN_HL |
5661 /* When 'spelllang' is set, load the wordlists. */ | 5661 /* When 'spelllang' is set and there is a window for this buffer in which |
5662 * 'spell' is set load the wordlists. */ | |
5662 else if (varp == &(curbuf->b_p_spl)) | 5663 else if (varp == &(curbuf->b_p_spl)) |
5663 { | 5664 { |
5664 errmsg = did_set_spelllang(curbuf); | 5665 win_T *wp; |
5666 | |
5667 FOR_ALL_WINDOWS(wp) | |
5668 if (wp->w_buffer == curbuf && wp->w_p_spell) | |
5669 { | |
5670 errmsg = did_set_spelllang(curbuf); | |
5671 # ifdef FEAT_WINDOWS | |
5672 break; | |
5673 # endif | |
5674 } | |
5665 } | 5675 } |
5666 #endif | 5676 #endif |
5667 | 5677 |
5668 #ifdef FEAT_AUTOCMD | 5678 #ifdef FEAT_AUTOCMD |
5669 # ifdef FEAT_SYN_HL | 5679 # ifdef FEAT_SYN_HL |
6634 if (p_imdisable) | 6644 if (p_imdisable) |
6635 im_set_active(FALSE); | 6645 im_set_active(FALSE); |
6636 } | 6646 } |
6637 #endif | 6647 #endif |
6638 | 6648 |
6649 #ifdef FEAT_SYN_HL | |
6650 /* 'spell' */ | |
6651 else if ((int *)varp == &curwin->w_p_spell) | |
6652 { | |
6653 if (curwin->w_p_spell) | |
6654 { | |
6655 char_u *errmsg = did_set_spelllang(curbuf); | |
6656 if (errmsg != NULL) | |
6657 EMSG(_(errmsg)); | |
6658 } | |
6659 } | |
6660 #endif | |
6661 | |
6639 #ifdef FEAT_FKMAP | 6662 #ifdef FEAT_FKMAP |
6640 else if ((int *)varp == &p_altkeymap) | 6663 else if ((int *)varp == &p_altkeymap) |
6641 { | 6664 { |
6642 if (old_value != p_altkeymap) | 6665 if (old_value != p_altkeymap) |
6643 { | 6666 { |
8584 #endif | 8607 #endif |
8585 #ifdef FEAT_SYN_HL | 8608 #ifdef FEAT_SYN_HL |
8586 /* Don't copy 'syntax', it must be set */ | 8609 /* Don't copy 'syntax', it must be set */ |
8587 buf->b_p_syn = empty_option; | 8610 buf->b_p_syn = empty_option; |
8588 buf->b_p_spl = vim_strsave(p_spl); | 8611 buf->b_p_spl = vim_strsave(p_spl); |
8589 did_set_spelllang(buf); | |
8590 #endif | 8612 #endif |
8591 #if defined(FEAT_CINDENT) && defined(FEAT_EVAL) | 8613 #if defined(FEAT_CINDENT) && defined(FEAT_EVAL) |
8592 buf->b_p_inde = vim_strsave(p_inde); | 8614 buf->b_p_inde = vim_strsave(p_inde); |
8593 buf->b_p_indk = vim_strsave(p_indk); | 8615 buf->b_p_indk = vim_strsave(p_indk); |
8594 #endif | 8616 #endif |