diff options
author | Santo Cariotti <santo@dcariotti.me> | 2023-10-20 22:40:26 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2023-10-20 22:40:26 +0200 |
commit | 10f48592388c78f93487ea96bcc9ad40c4864584 (patch) | |
tree | bfff7a3980baa242c86f478fee11679a37142878 /src/ui.rs | |
parent | 2fa8e3c69079f9fa4ebbf0adba7ac319a55fa8fe (diff) |
Show buffer value
Diffstat (limited to 'src/ui.rs')
-rw-r--r-- | src/ui.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -35,7 +35,7 @@ impl UI { } pub fn get_paragraph(&self, pid: Pid) -> Paragraph { - let lines: Vec<Line> = self.lines.iter().map(|x| x.output_ui()).collect(); + let lines: Vec<Line> = self.lines.iter().map(|x| x.output_ui(pid)).collect(); let paragraph = Paragraph::new(lines) .block( Block::default() @@ -77,7 +77,7 @@ impl UI { } let filters: Vec<&str> = match &args.filter { - Some(filter) => filter.split(",").collect::<Vec<&str>>(), + Some(filter) => filter.split(',').collect::<Vec<&str>>(), None => vec![], }; while !should_quit { |