Skip to content

Commit 16896a1

Browse files
committed
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)
1 parent 63e82db commit 16896a1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/if_perl.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ Buffers(...)
15581558

15591559
pat = (char_u *)SvPV(sv, len);
15601560
++emsg_off;
1561-
b = buflist_findpat(pat, pat+len, FALSE, FALSE, FALSE);
1561+
b = buflist_findpat(pat, pat + len, TRUE, FALSE, FALSE);
15621562
--emsg_off;
15631563
}
15641564

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1576,
769771
/**/
770772
1575,
771773
/**/

0 commit comments

Comments
 (0)