0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.1.1908: every popup window consumes a buffer number

Problem:    Every popup window consumes a buffer number.
Solution:   Recycle buffers only used for popup windows.  Do not list popup
            window buffers.
This commit is contained in:
Bram Moolenaar
2019-08-21 22:25:30 +02:00
parent fe6e7618b4
commit 00b0d6d8dc
8 changed files with 75 additions and 28 deletions

View File

@@ -4633,8 +4633,9 @@ invalid_range(exarg_T *eap)
return _(e_invrange);
break;
case ADDR_BUFFERS:
if (eap->line1 < firstbuf->b_fnum
|| eap->line2 > lastbuf->b_fnum)
// Only a boundary check, not whether the buffers actually
// exist.
if (eap->line1 < 1 || eap->line2 > get_highest_fnum())
return _(e_invrange);
break;
case ADDR_LOADED_BUFFERS: