# buffer-limit

Source: https://libtmux.org/en/tmux/3.2a/catalog/options/buffer-limit/

> Set the number of buffers; as new buffers are added to the top of the stack, old ones are removed from the bottom if necessary to maintain this maximum length.

option tmux3.2a

Set the number of buffers; as new buffers are added to the top of the stack, old ones are removed from the bottom if necessary to maintain this maximum length.

* Scope

  server

* Type

  Number

* Default

  `50`

* Values

  1 to 2147483647

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.2a/manual/set-option/) `-s buffer-limit value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.2a/manual/show-options/) `-s buffer-limit`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/options/buffer-limit/#description)

Set the number of buffers; as new buffers are added to the top of the stack, old ones are removed from the bottom if necessary to maintain this maximum length.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/options/buffer-limit/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/buffer-limit/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/buffer-limit/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/options/buffer-limit/#source)

* Defined in

  [`options-table.c:200`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L200)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.2a/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#options-buffer-limit)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/options/buffer-limit/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.BUFFER_LIMIT`](https://libtmux.org/en/rs/latest/reference/options-generated-buffer_limit/)

* Go

  [`tmux.Server.SetBufferLimit`](https://libtmux.org/en/go/latest/reference/tmux-server-setbufferlimit/), [`tmux.ServerOptionValues.BufferLimit`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-bufferlimit/)
