comparison src/buffer.c @ 2620:5fbc411a611d v7.3.042

updated for version 7.3.042 Problem: No spell highlighting when re-using an empty buffer. Solution: Clear the spell checking info only when clearing the options for a buffer. (James Vega)
author Bram Moolenaar <bram@vim.org>
date Wed, 27 Oct 2010 16:18:00 +0200
parents 7c2e6ba1d702
children fcea35e2a41f
comparison
equal deleted inserted replaced
2619:6a80537ac7aa 2620:5fbc411a611d
637 { 637 {
638 if (free_options) 638 if (free_options)
639 { 639 {
640 clear_wininfo(buf); /* including window-local options */ 640 clear_wininfo(buf); /* including window-local options */
641 free_buf_options(buf, TRUE); 641 free_buf_options(buf, TRUE);
642 #ifdef FEAT_SPELL
643 ga_clear(&buf->b_s.b_langp);
644 #endif
642 } 645 }
643 #ifdef FEAT_EVAL 646 #ifdef FEAT_EVAL
644 vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */ 647 vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */
645 hash_init(&buf->b_vars.dv_hashtab); 648 hash_init(&buf->b_vars.dv_hashtab);
646 #endif 649 #endif
658 map_clear_int(buf, MAP_ALL_MODES, TRUE, TRUE); /* clear local abbrevs */ 661 map_clear_int(buf, MAP_ALL_MODES, TRUE, TRUE); /* clear local abbrevs */
659 #endif 662 #endif
660 #ifdef FEAT_MBYTE 663 #ifdef FEAT_MBYTE
661 vim_free(buf->b_start_fenc); 664 vim_free(buf->b_start_fenc);
662 buf->b_start_fenc = NULL; 665 buf->b_start_fenc = NULL;
663 #endif
664 #ifdef FEAT_SPELL
665 ga_clear(&buf->b_s.b_langp);
666 #endif 666 #endif
667 } 667 }
668 668
669 /* 669 /*
670 * Free the b_wininfo list for buffer "buf". 670 * Free the b_wininfo list for buffer "buf".