diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2019-07-02 16:34:07 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2019-07-02 16:36:12 +0300 |
| commit | 78129150c94050d8860b3bf917b7f2186b877e84 (patch) | |
| tree | d05ba4312de09d86aeb28ac3df35095965318c57 /src/input_handler.cc | |
| parent | 2ff9fd8d9262e9fd1361dd2c0e873277aabad663 (diff) | |
src: Cap the maximum size of history registers
History registers (for prompt commands, pipe primitive commands etc) are
populated interactively by the users, and currently have no size limit.
This commits silently drops the oldest entries in the storage space to
allow at most 100 entries, to prevent long-running editing sessions from
hogging memory for data most likely never used.
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions
