diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-30 09:46:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 09:46:41 -0400 |
commit | 5d73a6e5dfbd1a7ce27888e7a7ac1c402da9dfc8 (patch) | |
tree | 7652a59b6b7b7305f5b43a3ddb95c9a348cb377d /src/nvim/buffer.c | |
parent | 4afc93b926dc14365db4bad4cd4030d5d5a69747 (diff) | |
parent | 35d817e68c9d1f2fd724bf00ad6f1958a0c815a9 (diff) | |
download | rneovim-5d73a6e5dfbd1a7ce27888e7a7ac1c402da9dfc8.tar.gz rneovim-5d73a6e5dfbd1a7ce27888e7a7ac1c402da9dfc8.tar.bz2 rneovim-5d73a6e5dfbd1a7ce27888e7a7ac1c402da9dfc8.zip |
Merge pull request #6621 from jamessan/vim-7.4.2231
vim-patch:7.4.2231,7.4.2239,7.4.2244,7.4.2245,7.4.2246,7.4.2263,8.0.0150
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 7477118d6f..7def8c1684 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -2365,12 +2365,17 @@ void buflist_list(exarg_T *eap) && (buf == curbuf || curwin->w_alt_fnum != buf->b_fnum))) { continue; } - msg_putchar('\n'); - if (buf_spname(buf) != NULL) + if (buf_spname(buf) != NULL) { STRLCPY(NameBuff, buf_spname(buf), MAXPATHL); - else - home_replace(buf, buf->b_fname, NameBuff, MAXPATHL, TRUE); + } else { + home_replace(buf, buf->b_fname, NameBuff, MAXPATHL, true); + } + if (message_filtered(NameBuff)) { + continue; + } + + msg_putchar('\n'); len = vim_snprintf((char *)IObuff, IOSIZE - 20, "%3d%c%c%c%c%c \"%s\"", buf->b_fnum, buf->b_p_bl ? ' ' : 'u', |