diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-09 13:31:51 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-09 13:31:51 -0500 |
commit | e9ac693bcde8e09e943b1e4a0e8a534c813501b8 (patch) | |
tree | 705cf381688eb92a157052404946e793c1aa4642 /src/nvim/cursor_shape.c | |
parent | dcccc1a50de3caea62ab12f9e15fc6f3e242b5c4 (diff) | |
parent | 74817b546e6fd4c6ec6e201c1b461e6cfbf5a3be (diff) | |
download | rneovim-e9ac693bcde8e09e943b1e4a0e8a534c813501b8.tar.gz rneovim-e9ac693bcde8e09e943b1e4a0e8a534c813501b8.tar.bz2 rneovim-e9ac693bcde8e09e943b1e4a0e8a534c813501b8.zip |
Merge pull request #1389 from elmart/clang-analysis-fixes
Fix clang analysis warnings.
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r-- | src/nvim/cursor_shape.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c index 9992fbdfcf..328b751693 100644 --- a/src/nvim/cursor_shape.c +++ b/src/nvim/cursor_shape.c @@ -1,3 +1,4 @@ +#include <assert.h> #include "nvim/vim.h" #include "nvim/ascii.h" #include "nvim/cursor_shape.h" @@ -76,6 +77,7 @@ char_u *parse_shape_opt(int what) * For the 'a' mode, we loop to handle all the modes. */ all_idx = -1; + assert(modep < colonp); while (modep < colonp || all_idx >= 0) { if (all_idx < 0) { /* Find the mode. */ |