diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-06 12:25:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-06 12:25:56 +0100 |
commit | 16896a10199572ff05149786868ff402aa8e31ea (patch) | |
tree | ed5a2a1e1510795c3c433c92ac8db6adff460438 | |
parent | 63e82db6fc910b2d8f1cd018894e50e8b4448155 (diff) | |
download | vim-git-16896a10199572ff05149786868ff402aa8e31ea.tar.gz |
patch 8.0.1576: Perl VIM::Buffers() does not find every bufferv8.0.1576
Problem: Perl VIM::Buffers() does not find every buffer.
Solution: Also find unlisted buffer by number or name. (Chris Weyl,
closes #2692)
-rw-r--r-- | src/if_perl.xs | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index 2e6004bb9..7b45033ff 100644 --- 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; } diff --git a/src/version.c b/src/version.c index c47cf6bb1..65b5d2dad 100644 --- 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, |