aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakson Alves de Aquino <jalvesaq@gmail.com>2015-04-18 20:24:55 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-04-25 23:32:48 -0400
commitf8151735a3c6224cc872bb7e20cf97cfaf78c7d2 (patch)
tree3c5c0c3a501f5f7e3e9d1005aab2b892636254be
parentdd8531dbb5042241d20f11ca97436d6d8249c087 (diff)
downloadrneovim-f8151735a3c6224cc872bb7e20cf97cfaf78c7d2.tar.gz
rneovim-f8151735a3c6224cc872bb7e20cf97cfaf78c7d2.tar.bz2
rneovim-f8151735a3c6224cc872bb7e20cf97cfaf78c7d2.zip
spell.c: give priority to rare words. #2456
See: https://groups.google.com/forum/#!topic/vim_dev/rPWOoR3ZgSA
-rw-r--r--runtime/doc/spell.txt3
-rw-r--r--src/nvim/spell.c4
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