Mercurial > vim
diff src/spell.c @ 5735:50dbef5e774a v7.4.212
updated for version 7.4.212
Problem: Now that the +visual feature is always enabled the #ifdefs for it
are not useful.
Solution: Remove the checks for FEAT_VISUAL.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 23 Mar 2014 15:13:05 +0100 |
parents | a8650e2a0b5a |
children | 7965cb6a435a |
line wrap: on
line diff
--- a/src/spell.c +++ b/src/spell.c @@ -10191,7 +10191,6 @@ spell_suggest(count) if (no_spell_checking(curwin)) return; -#ifdef FEAT_VISUAL if (VIsual_active) { /* Use the Visually selected text as the bad word. But reject @@ -10209,10 +10208,8 @@ spell_suggest(count) ++badlen; end_visual_mode(); } - else -#endif - /* Find the start of the badly spelled word. */ - if (spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL) == 0 + /* Find the start of the badly spelled word. */ + else if (spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL) == 0 || curwin->w_cursor.col > prev_cursor.col) { /* No bad word or it starts after the cursor: use the word under the