aboutsummaryrefslogtreecommitdiff
path: root/src/tui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui.rs')
-rw-r--r--src/tui.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tui.rs b/src/tui.rs
index b39b5c4..1e3061f 100644
--- a/src/tui.rs
+++ b/src/tui.rs
@@ -20,7 +20,7 @@ pub mod commands;
pub mod popup;
pub mod ui;
-use crate::{cliargs::CLIArgs, App};
+use crate::{config::BibiConfig, App};
use crossterm::{
cursor,
event::{
@@ -195,11 +195,11 @@ impl Tui {
//
// [`Draw`]: ratatui::Terminal::draw
// [`rendering`]: crate::ui::render
- pub fn draw(&mut self, app: &mut App, args: &CLIArgs) -> Result<()> {
+ pub fn draw(&mut self, app: &mut App, cfg: &BibiConfig) -> Result<()> {
// self.terminal.draw(|frame| ui::render(app, frame))?;
self.terminal
// .draw(|frame| frame.render_widget(app, frame.area()))?;
- .draw(|frame| ui::render_ui(app, args, frame))?;
+ .draw(|frame| ui::render_ui(app, cfg, frame))?;
Ok(())
}