Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow selecting text in the tui #160

Closed
wants to merge 1 commit into from
Closed

Conversation

BapRx
Copy link

@BapRx BapRx commented Oct 9, 2024

A simple fix to #153 I found after reading this thread: ratatui/ratatui#985 (comment)

Tell me if I'm missing something but the mouse scrolling still works and bell/diff/fold still toggles using the keyboard.

@@ -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())?;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BapRx Thank you, but I found this change break mouse scrolling feature on history view.
I'll investigate the problem too.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh.. good catch, I haven't used history mode yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants