changeset 13404:615572809435 v8.0.1576

patch 8.0.1576: Perl VIM::Buffers() does not find every buffer commit https://github.com/vim/vim/commit/16896a10199572ff05149786868ff402aa8e31ea Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 6 12:25:56 2018 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 06 Mar 2018 12:30:07 +0100
parents a9a9583a17e7
children b65fa9463baa
files src/if_perl.xs src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -1558,7 +1558,7 @@ Buffers(...)
 
 		pat = (char_u *)SvPV(sv, len);
 		++emsg_off;
-		b = buflist_findpat(pat, pat+len, FALSE, FALSE, FALSE);
+		b = buflist_findpat(pat, pat + len, TRUE, FALSE, FALSE);
 		--emsg_off;
 	    }
 
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1576,
+/**/
     1575,
 /**/
     1574,