comparison src/normal.c @ 310:04bf54c587f4

updated for version 7.0082
author vimboss
date Tue, 07 Jun 2005 21:00:02 +0000
parents 86cd0a77d2ae
children 96789bc4346a
comparison
equal deleted inserted replaced
309:ba02e70f9b18 310:04bf54c587f4
4663 clearopbeep(cap->oap); 4663 clearopbeep(cap->oap);
4664 break; 4664 break;
4665 4665
4666 #endif /* FEAT_FOLDING */ 4666 #endif /* FEAT_FOLDING */
4667 4667
4668 #ifdef FEAT_SYN_HL
4669 case 'g': /* "zg": add good word to word list */
4670 case 'w': /* "zw": add wrong word to word list */
4671 {
4672 char_u *ptr = NULL;
4673 int len;
4674
4675 if (checkclearop(cap->oap))
4676 break;
4677 # ifdef FEAT_VISUAL
4678 if (VIsual_active && get_visual_text(cap, &ptr, &len)
4679 == FAIL)
4680 return;
4681 # endif
4682 if (ptr == NULL && (len = find_ident_under_cursor(&ptr,
4683 FIND_IDENT)) == 0)
4684 return;
4685 spell_add_word(ptr, len, nchar == 'w');
4686 }
4687 #endif
4688
4668 default: clearopbeep(cap->oap); 4689 default: clearopbeep(cap->oap);
4669 } 4690 }
4670 4691
4671 #ifdef FEAT_FOLDING 4692 #ifdef FEAT_FOLDING
4672 /* Redraw when 'foldenable' changed */ 4693 /* Redraw when 'foldenable' changed */