diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-05-25 20:31:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 12:31:14 -0600 |
commit | 9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e (patch) | |
tree | 83e044109d61242150b8c98897e179416025f576 /src/nvim/spell.c | |
parent | 8c4e62351f67dd6a44f67f3a2b6f3a3551acf475 (diff) | |
download | rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.gz rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.bz2 rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.zip |
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index df3ee73a28..da04a82d38 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -301,7 +301,6 @@ typedef struct { int score; } limitscore_T; - #ifdef INCLUDE_GENERATED_DECLARATIONS # include "spell.c.generated.h" #endif @@ -1303,7 +1302,6 @@ static void find_prefix(matchinf_T *mip, int mode) mip->mi_word); find_word(mip, FIND_PREFIX); - if (len == 0) { break; // no children, word must end here } @@ -2550,7 +2548,6 @@ void spell_reload(void) } } - // Opposite of offset2bytes(). // "pp" points to the bytes and is advanced over it. // Returns the offset. @@ -3138,7 +3135,6 @@ static bool check_need_cap(linenr_T lnum, colnr_T col) return need_cap; } - // ":spellrepall" void ex_spellrepall(exarg_T *eap) { @@ -4937,7 +4933,6 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so } } - // Go one level deeper in the tree. static void go_deeper(trystate_T *stack, int depth, int score_add) { @@ -5834,7 +5829,6 @@ static void check_suggestions(suginfo_T *su, garray_T *gap) } } - // Add a word to be banned. static void add_banned(suginfo_T *su, char_u *word) { @@ -5888,7 +5882,6 @@ static void rescore_one(suginfo_T *su, suggest_T *stp) } } - // Function given to qsort() to sort the suggestions on st_score. // First on "st_score", then "st_altscore" then alphabetically. static int sug_compare(const void *s1, const void *s2) @@ -6069,7 +6062,6 @@ static void spell_soundfold_wsal(slang_T *slang, char_u *inword, char_u *res) bool did_white = false; int wordlen; - // Convert the multi-byte string to a wide-character string. // Remove accents, if wanted. We actually remove all non-word characters. // But keep white space. |