forked from aniani/vim
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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user