mirror of
https://github.com/wez/wezterm.git
synced 2024-12-01 00:35:46 +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:
parent
a23699790c
commit
aae1d5cdb4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user