mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
vim-patch:8.1.1032: warnings from clang static analyzer
Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan)
Solution: Fix relevant warnings.
2c519cf3bf
This commit is contained in:
@@ -3810,10 +3810,10 @@ static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg)
|
||||
*/
|
||||
static buf_T *ins_compl_next_buf(buf_T *buf, int flag)
|
||||
{
|
||||
static win_T *wp;
|
||||
static win_T *wp = NULL;
|
||||
|
||||
if (flag == 'w') { // just windows
|
||||
if (buf == curbuf) { // first call for this flag/expansion
|
||||
if (buf == curbuf || wp == NULL) { // first call for this flag/expansion
|
||||
wp = curwin;
|
||||
}
|
||||
assert(wp);
|
||||
|
Reference in New Issue
Block a user