diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-07-04 23:50:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 23:50:57 +0200 |
commit | 69f0847ccc79acabb1cad5b1b54c906973946d81 (patch) | |
tree | f44ee09707eacbe75c8e3ff1be4ad53e0f5080ef /src/nvim/spell.c | |
parent | 1b70a1da0438018475a73e23015421b2212b34df (diff) | |
parent | ce30998221a53e208a6a68b4b0a3f76db9a5eac3 (diff) | |
download | rneovim-69f0847ccc79acabb1cad5b1b54c906973946d81.tar.gz rneovim-69f0847ccc79acabb1cad5b1b54c906973946d81.tar.bz2 rneovim-69f0847ccc79acabb1cad5b1b54c906973946d81.zip |
Merge #6959 from ZyX-I/pvs-fixes
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 25ae562e65..715228cb4b 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -1433,12 +1433,10 @@ spell_move_to ( // the cursor. if (dir == BACKWARD || lnum != wp->w_cursor.lnum - || (lnum == wp->w_cursor.lnum - && (wrapped - || ((colnr_T)(curline - ? p - buf + (ptrdiff_t)len - : p - buf) - > wp->w_cursor.col)))) { + || wrapped + || ((colnr_T)(curline + ? p - buf + (ptrdiff_t)len + : p - buf) > wp->w_cursor.col)) { if (has_syntax) { col = (int)(p - buf); (void)syn_get_id(wp, lnum, (colnr_T)col, @@ -3635,7 +3633,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so // word). depth = 0; sp = &stack[0]; - memset(sp, 0, sizeof(trystate_T)); + memset(sp, 0, sizeof(trystate_T)); // -V512 sp->ts_curi = 1; if (soundfold) { |