diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-14 22:56:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 22:56:32 -0400 |
commit | 4b00916e940d35c351482b2bd5e3822796d030a3 (patch) | |
tree | 81d7f6880c7d05ff6985a1101d56c25ffc6a2aa0 /src/nvim/spell.c | |
parent | 759a05407f3e75cc002c0950563388735e969a94 (diff) | |
parent | 3183b09a5e0cce78be49e08cffb5208cf424e8c1 (diff) | |
download | rneovim-4b00916e940d35c351482b2bd5e3822796d030a3.tar.gz rneovim-4b00916e940d35c351482b2bd5e3822796d030a3.tar.bz2 rneovim-4b00916e940d35c351482b2bd5e3822796d030a3.zip |
Merge pull request #13092 from janlazo/vim-8.1.1403
vim-patch:8.1.{95,103,221,269,975,978,1403,1569,1856,1983,2014,2365,2406},8.2.{573,616,710,957,1020,1036,1038,1743,1842,1843}
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index f036d7fe04..1984a357c3 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -396,8 +396,7 @@ size_t spell_check( mi.mi_word = ptr; mi.mi_fend = ptr; if (spell_iswordp(mi.mi_fend, wp)) { - int prev_upper; - int this_upper; + bool this_upper = false; // init for gcc if (use_camel_case) { c = PTR2CHAR(mi.mi_fend); @@ -407,7 +406,7 @@ size_t spell_check( do { MB_PTR_ADV(mi.mi_fend); if (use_camel_case) { - prev_upper = this_upper; + const bool prev_upper = this_upper; c = PTR2CHAR(mi.mi_fend); this_upper = SPELL_ISUPPER(c); camel_case = !prev_upper && this_upper; |