diff options
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 05d6c9758a..93e127394b 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -3436,8 +3436,9 @@ static int ins_compl_get_exp(pos_T *ini) int set_match_pos; if (!compl_started) { - for (ins_buf = firstbuf; ins_buf != NULL; ins_buf = ins_buf->b_next) - ins_buf->b_scanned = 0; + FOR_ALL_BUFFERS(buf) { + buf->b_scanned = 0; + } found_all = FALSE; ins_buf = curbuf; e_cpt = (compl_cont_status & CONT_LOCAL) |