1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-28 01:06:37 +03:00

mux: set a limit on the line cache

I made this unbounded originally because I wanted to do something
smarter around config reloading.  I'm still too lazy to make it
do that, but do recognize that we should have some limit on the
line cache size, so we just pick the value of the scrollback
size at the time we started.
This commit is contained in:
Wez Furlong 2020-03-07 20:59:33 -08:00
parent a23699790c
commit aae1d5cdb4

View File

@ -100,7 +100,7 @@ impl RenderableInner {
poll_interval: BASE_POLL_INTERVAL,
cursor_position: StableCursorPosition::default(),
dimensions,
lines: LruCache::unbounded(),
lines: LruCache::new(configuration().scrollback_lines),
title: title.to_string(),
working_dir: None,
fetch_limiter,