summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-11 22:51:14 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-11 22:51:14 +0200
commit08cc374dabd2a02785129fa1c0100f7745c244ad (patch)
tree1f24dad29bd8ed0d6715bf96388817f8b162f7c6 /src/normal.c
parent4999a7fb6585915b53888c930067b33c01674678 (diff)
downloadvim-git-08cc374dabd2a02785129fa1c0100f7745c244ad.tar.gz
patch 8.1.1838: there is :spellwrong and :spellgood but not :spellrarev8.1.1838
Problem: There is :spellwrong and :spellgood but not :spellrare. Solution: Add :spellrare. (Martin Tournoij, closes #4291)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c
index f717e8cd5..2067542d3 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5127,7 +5127,8 @@ dozet:
if (ptr == NULL && (len = find_ident_under_cursor(&ptr,
FIND_IDENT)) == 0)
return;
- spell_add_word(ptr, len, nchar == 'w' || nchar == 'W',
+ spell_add_word(ptr, len, nchar == 'w' || nchar == 'W'
+ ? SPELL_ADD_BAD : SPELL_ADD_GOOD,
(nchar == 'G' || nchar == 'W')
? 0 : (int)cap->count1,
undo);