summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-09-25 18:54:24 +0200
committerBram Moolenaar <Bram@vim.org>2013-09-25 18:54:24 +0200
commit134bf07ca0e28addeeb67edc4fceeba00388d7fc (patch)
treea1fe5bab61e9213485af6502691233aee6992d6f /src/spell.c
parentf211884fa151a3c39b1a85a115d6d88ce85bbe54 (diff)
downloadvim-git-134bf07ca0e28addeeb67edc4fceeba00388d7fc.tar.gz
updated for version 7.4.038v7.4.038
Problem: Using "zw" and "zg" when 'spell' is off give a confusing error message. (Gary Johnson) Solution: Ignore the error when locating the word. Explicitly mention what word was added. (Christian Brabandt)
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/spell.c b/src/spell.c
index 20344f25f..3ee8b02ac 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -9479,7 +9479,8 @@ spell_add_word(word, len, bad, idx, undo)
if (undo)
{
home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
- smsg((char_u *)_("Word removed from %s"), NameBuff);
+ smsg((char_u *)_("Word '%.*s' removed from %s"),
+ len, word, NameBuff);
}
}
fseek(fd, fpos_next, SEEK_SET);
@@ -9525,7 +9526,7 @@ spell_add_word(word, len, bad, idx, undo)
fclose(fd);
home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
- smsg((char_u *)_("Word added to %s"), NameBuff);
+ smsg((char_u *)_("Word '%.*s' added to %s"), len, word, NameBuff);
}
}
@@ -10135,7 +10136,7 @@ spell_check_sps()
}
/*
- * "z?": Find badly spelled word under or after the cursor.
+ * "z=": Find badly spelled word under or after the cursor.
* Give suggestions for the properly spelled word.
* In Visual mode use the highlighted word as the bad word.
* When "count" is non-zero use that suggestion.