diff options
author | Wayne Rowcliffe <war1025@gmail.com> | 2014-08-02 20:19:33 -0500 |
---|---|---|
committer | Wayne Rowcliffe <war1025@gmail.com> | 2014-08-02 20:19:33 -0500 |
commit | 8cf45786b11c4c96444962227a960a3683d9f2b1 (patch) | |
tree | cb77b3c5ffb31809b004f08ef4288575ecfc1c40 /src/nvim/edit.c | |
parent | 44afe610f8cfbb72141fddd4b13f5fe54386211f (diff) | |
download | rneovim-8cf45786b11c4c96444962227a960a3683d9f2b1.tar.gz rneovim-8cf45786b11c4c96444962227a960a3683d9f2b1.tar.bz2 rneovim-8cf45786b11c4c96444962227a960a3683d9f2b1.zip |
Add FOR_ALL_BUFFERS helper
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 3dddaea39d..e241bf5b9c 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -3434,8 +3434,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) + FOR_ALL_BUFFERS(ins_buf) { ins_buf->b_scanned = 0; + } found_all = FALSE; ins_buf = curbuf; e_cpt = (compl_cont_status & CONT_LOCAL) |