Skip to content

Commit

Permalink
fix: allow selecting text in the tui
Browse files Browse the repository at this point in the history
Signed-off-by: Baptiste Roux <[email protected]>
  • Loading branch information
BapRx committed Oct 9, 2024
1 parent f1c7ef8 commit 7c3fe7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use color_eyre::eyre::Result;
use crossterm::{
cursor,
event::{
DisableBracketedPaste, DisableMouseCapture, EnableBracketedPaste, EnableMouseCapture,
Event as CrosstermEvent, KeyEvent, KeyEventKind, MouseEvent,
DisableBracketedPaste, DisableMouseCapture, EnableBracketedPaste, Event as CrosstermEvent,
KeyEvent, KeyEventKind, MouseEvent,
},
terminal::{EnterAlternateScreen, LeaveAlternateScreen},
};
Expand Down Expand Up @@ -182,7 +182,7 @@ impl Tui {
crossterm::terminal::enable_raw_mode()?;
crossterm::execute!(io(), EnterAlternateScreen, cursor::Hide)?;
if self.mouse {
crossterm::execute!(io(), EnableMouseCapture)?;
crossterm::execute!(io())?;
}
if self.paste {
crossterm::execute!(io(), EnableBracketedPaste)?;
Expand Down

0 comments on commit 7c3fe7a

Please sign in to comment.