0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00

patch 8.0.1576: Perl VIM::Buffers() does not find every buffer

Problem:    Perl VIM::Buffers() does not find every buffer.
Solution:   Also find unlisted buffer by number or name. (Chris Weyl,
            closes #2692)
This commit is contained in:
Bram Moolenaar
2018-03-06 12:25:56 +01:00
parent 63e82db6fc
commit 16896a1019
2 changed files with 3 additions and 1 deletions

View File

@@ -1558,7 +1558,7 @@ Buffers(...)
pat = (char_u *)SvPV(sv, len); pat = (char_u *)SvPV(sv, len);
++emsg_off; ++emsg_off;
b = buflist_findpat(pat, pat+len, FALSE, FALSE, FALSE); b = buflist_findpat(pat, pat + len, TRUE, FALSE, FALSE);
--emsg_off; --emsg_off;
} }

View File

@@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1576,
/**/ /**/
1575, 1575,
/**/ /**/