Skip to content

Commit

Permalink
fix: show the ui after a session
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael DEMACON <[email protected]>
  • Loading branch information
quantumsheep committed Feb 21, 2024
1 parent 339d12e commit b6f7074
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ use crossterm::{
self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyEventKind, KeyModifiers,
},
execute,
terminal::{
disable_raw_mode, enable_raw_mode, Clear, ClearType, EnterAlternateScreen,
LeaveAlternateScreen,
},
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use fuzzy_matcher::{skim::SkimMatcherV2, FuzzyMatcher};
#[allow(clippy::wildcard_imports)]
Expand Down Expand Up @@ -302,6 +299,7 @@ where
B: std::io::Write,
{
let mut terminal = terminal.borrow_mut();
terminal.clear()?;

// restore terminal
disable_raw_mode()?;
Expand All @@ -310,7 +308,6 @@ where
Show,
LeaveAlternateScreen,
DisableMouseCapture,
Clear(ClearType::All),
)?;

Ok(())
Expand Down

0 comments on commit b6f7074

Please sign in to comment.