summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-03-23 15:13:05 +0100
committerBram Moolenaar <Bram@vim.org>2014-03-23 15:13:05 +0100
commitf7ff6e85e8a4e84cff023f5db4b66ef85986605a (patch)
tree813913a9c1d1418b5b85e3a4bc414dbeb2b3f6a3 /src/spell.c
parenta68783751647e3243ca6f22df62907efbdbccb02 (diff)
downloadvim-git-f7ff6e85e8a4e84cff023f5db4b66ef85986605a.tar.gz
updated for version 7.4.212v7.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.
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/spell.c b/src/spell.c
index 82bf2dba6..768c7c5f9 100644
--- 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