diff options
author | Jack Danger Canty <jackdanger@squareup.com> | 2015-01-19 22:21:14 -0800 |
---|---|---|
committer | Jack Danger Canty <jackdanger@squareup.com> | 2015-01-22 21:57:03 -0800 |
commit | 19c22cdb80e30711be5af33cb6726566ad629944 (patch) | |
tree | e83b3e922b402921da48d721b7b8199b6a0a62f2 /src/nvim/spell.c | |
parent | d550eecf7092397d064df26850d4a09d9ab4a481 (diff) | |
download | rneovim-19c22cdb80e30711be5af33cb6726566ad629944.tar.gz rneovim-19c22cdb80e30711be5af33cb6726566ad629944.tar.bz2 rneovim-19c22cdb80e30711be5af33cb6726566ad629944.zip |
"halfway a line" is a very confusing phrase
If you Google for this phrase found in the Vim documentation you'll find
almost exclusively hits from the Vim documentation. I think changing
"halfway a line" to "halfway through a line" makes more sense.
There seems to be an pervasive odd use of the word 'halfway' in the
original docs which I'm updating everywhere.
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index bb995fe3c2..3753d9c85b 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -1631,9 +1631,9 @@ static void find_word(matchinf_T *mip, int mode) mip->mi_compoff = wlen; find_word(mip, FIND_KEEPCOMPOUND); -#if 0 // Disabled, a prefix must not appear halfway a compound word, - // unless the COMPOUNDPERMITFLAG is used and then it can't be a - // postponed prefix. +#if 0 // Disabled, a prefix must not appear halfway through a compound + // word, unless the COMPOUNDPERMITFLAG is used, in which case it + // can't be a postponed prefix. if (!slang->sl_nobreak || mip->mi_result == SP_BAD) { // Check for following word with prefix. mip->mi_compoff = c; @@ -2081,7 +2081,7 @@ spell_move_to ( return 0; // Start looking for bad word at the start of the line, because we can't - // start halfway a word, we don't know where it starts or ends. + // start halfway through a word, we don't know where it starts or ends. // // When searching backwards, we continue in the line to find the last // bad word (in the cursor line: before the cursor). @@ -5428,8 +5428,8 @@ static int spell_read_dic(spellinfo_T *spin, char_u *fname, afffile_T *affile) if (line[0] == '#' || line[0] == '/') continue; // comment line - // Remove CR, LF and white space from the end. White space halfway - // the word is kept to allow e.g., "et al.". + // Remove CR, LF and white space from the end. White space halfway through + // the word is kept to allow multi-word terms like "et al.". l = (int)STRLEN(line); while (l > 0 && line[l - 1] <= ' ') --l; @@ -9740,7 +9740,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so // Try word split and/or compounding. if ((sp->ts_fidx >= sp->ts_fidxtry || fword_ends) - // Don't split halfway a character. + // Don't split in the middle of a character && (!has_mbyte || sp->ts_tcharlen == 0) ) { bool try_compound; @@ -12275,7 +12275,7 @@ soundalike_score ( int score = 0; // Adding/inserting "*" at the start (word starts with vowel) shouldn't be - // counted so much, vowels halfway the word aren't counted at all. + // counted so much, vowels in the middle of the word aren't counted at all. if ((*badsound == '*' || *goodsound == '*') && *badsound != *goodsound) { if ((badsound[0] == NUL && goodsound[1] == NUL) || (goodsound[0] == NUL && badsound[1] == NUL)) |