commit | 0cb032ecb8b03d9c387b89c9f26158924f216e67 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Apr 23 20:52:00 2005 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Apr 23 20:52:00 2005 +0000 |
tree | 90fae818982fa882007e8c077c30c61a08bfeb38 | |
parent | 8fcc0f71a13eaecabb1314e5dc48fe937dd122b0 [diff] [blame] |
updated for version 7.0070
diff --git a/src/screen.c b/src/screen.c index b2e1181..58fb4d0 100644 --- a/src/screen.c +++ b/src/screen.c
@@ -2603,7 +2603,10 @@ } } - if (wp->w_p_spell && *wp->w_buffer->b_p_spl != NUL) + if (wp->w_p_spell + && *wp->w_buffer->b_p_spl != NUL + && wp->w_buffer->b_langp.ga_len > 0 + && *(char **)(wp->w_buffer->b_langp.ga_data) != NULL) { /* Prepare for spell checking. */ has_spell = TRUE;