Mercurial > vim
diff src/normal.c @ 16054:78faa25f9698 v8.1.1032
patch 8.1.1032: warnings from clang static analyzer
commit https://github.com/vim/vim/commit/2c519cf3bfe76083767ac94c674d2e161ed36587
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 21 21:45:34 2019 +0100
patch 8.1.1032: warnings from clang static analyzer
Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan)
Solution: Fix relevant warnings.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Mar 2019 22:00:05 +0100 |
parents | 7fad90423bd2 |
children | 4411c38f3d16 |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -214,7 +214,7 @@ static const struct nv_cmd {NL, nv_down, 0, FALSE}, {Ctrl_K, nv_error, 0, 0}, {Ctrl_L, nv_clear, 0, 0}, - {Ctrl_M, nv_down, 0, TRUE}, + {CAR, nv_down, 0, TRUE}, {Ctrl_N, nv_down, NV_STS, FALSE}, {Ctrl_O, nv_ctrlo, 0, 0}, {Ctrl_P, nv_up, NV_STS, FALSE}, @@ -4263,7 +4263,6 @@ find_decl( CLEAR_POS(&found_pos); for (;;) { - valid = FALSE; t = searchit(curwin, curbuf, &curwin->w_cursor, NULL, FORWARD, pat, 1L, searchflags, RE_LAST, (linenr_T)0, NULL, NULL); if (curwin->w_cursor.lnum >= old_pos.lnum)