0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.1-077

This commit is contained in:
Bram Moolenaar
2007-08-14 21:07:36 +00:00
parent b0db569905
commit 349955a205
2 changed files with 9 additions and 0 deletions

View File

@@ -1727,6 +1727,13 @@ get_syntax_attr(col, can_spell)
{
int attr = 0;
if (can_spell != NULL)
/* Default: Only do spelling when there is no @Spell cluster or when
* ":syn spell toplevel" was used. */
*can_spell = syn_buf->b_syn_spell == SYNSPL_DEFAULT
? (syn_buf->b_spell_cluster_id == 0)
: (syn_buf->b_syn_spell == SYNSPL_TOP);
/* check for out of memory situation */
if (syn_buf->b_sst_array == NULL)
return 0;