diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-28 20:14:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 20:14:48 -0500 |
commit | f5383705d1f49ef4d63490604eb7543ac1d5513b (patch) | |
tree | cd723a8cc21553645ea574b2180ee0294f201502 /src/nvim/edit.c | |
parent | b0215afc84102073554bb7cf990b881b33878ac1 (diff) | |
parent | d712c30fff8cbe1328b12fc48d4572766db6c805 (diff) | |
download | rneovim-f5383705d1f49ef4d63490604eb7543ac1d5513b.tar.gz rneovim-f5383705d1f49ef4d63490604eb7543ac1d5513b.tar.bz2 rneovim-f5383705d1f49ef4d63490604eb7543ac1d5513b.zip |
Merge pull request #13624 from janlazo/vim-8.2.2234
vim-patch:8.1.1032,8.2.{429,1785,2234,2235,2237,2241}
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 36acc10f98..962ef9b245 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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); |