diff options
-rw-r--r-- | runtime/doc/spell.txt | 3 | ||||
-rw-r--r-- | src/nvim/spell.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt index 78d7b5477f..8a752d8a11 100644 --- a/runtime/doc/spell.txt +++ b/runtime/doc/spell.txt @@ -1181,8 +1181,7 @@ rare words. Example: Rare words are highlighted differently from bad words. This is to be used for words that are correct for the language, but are hardly ever used and could be -a typing mistake anyway. When the same word is found as good it won't be -highlighted as rare. +a typing mistake anyway. This flag can also be used on an affix, so that a basic word is not rare but the basic word plus affix is rare |spell-affix-flags|. However, if the word diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 90a2d69703..06cba3b324 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -572,8 +572,8 @@ typedef struct langp_S { // Result values. Lower number is accepted over higher one. #define SP_BANNED -1 -#define SP_OK 0 -#define SP_RARE 1 +#define SP_RARE 0 +#define SP_OK 1 #define SP_LOCAL 2 #define SP_BAD 3 |