mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-12 08:00:08 +01:00
fix: provide default termsize for headless test instances
This commit is contained in:
parent
57ebb10331
commit
47f25a2893
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ impl<'a> Ui<'a> {
|
|||
let lookup_trie = model::Model::build_lookup_trie(&matches);
|
||||
let focus_index = if model.reverse { matches.len() - 1 } else { 0 };
|
||||
|
||||
let (term_width, _) = termion::terminal_size().expect("Cannot read the terminal size.");
|
||||
let (term_width, _) = termion::terminal_size().unwrap_or((80u16, 30u16)); // .expect("Cannot read the terminal size.");
|
||||
let line_offsets = get_line_offsets(&model.lines, term_width);
|
||||
|
||||
Ui {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue