diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-07-28 15:26:17 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-28 21:26:17 +0200 |
commit | 3b82c075b3adbe63fb2380bad875752fc950d352 (patch) | |
tree | 9d7920231f087ef6a5fb3fa11083eec785fad2a1 /src/nvim/getchar.c | |
parent | 6953e151bbcbc1405762d94790957a0446300c9f (diff) | |
download | rneovim-3b82c075b3adbe63fb2380bad875752fc950d352.tar.gz rneovim-3b82c075b3adbe63fb2380bad875752fc950d352.tar.bz2 rneovim-3b82c075b3adbe63fb2380bad875752fc950d352.zip |
vim-patch:8.0.1753: fix various warnings #10639
vim-patch:8.0.1753: various warnings from a static analyser
Problem: Various warnings from a static analyser
Solution: Remove unneeded conditions.
https://github.com/vim/vim/commit/1c17ffa4611f4efe68c61f7cdd9ed692a866ba75
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index e1aea25409..1a311a109f 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -3448,7 +3448,7 @@ int map_to_exists_mode(const char *const rhs, const int mode, const bool abbr) { mapblock_T *mp; int hash; - bool expand_buffer = false; + bool exp_buffer = false; validate_maphash(); @@ -3459,12 +3459,12 @@ int map_to_exists_mode(const char *const rhs, const int mode, const bool abbr) if (hash > 0) { // There is only one abbr list. break; } - if (expand_buffer) { + if (exp_buffer) { mp = curbuf->b_first_abbr; } else { mp = first_abbr; } - } else if (expand_buffer) { + } else if (exp_buffer) { mp = curbuf->b_maphash[hash]; } else { mp = maphash[hash]; @@ -3476,10 +3476,10 @@ int map_to_exists_mode(const char *const rhs, const int mode, const bool abbr) } } } - if (expand_buffer) { + if (exp_buffer) { break; } - expand_buffer = true; + exp_buffer = true; } return false; |