-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Introduce SwitchCurrentTabToPrev/SwitchCurrentTabToNext actions #854
Conversation
frontends/rioterm/src/context/mod.rs
Outdated
@@ -22,6 +22,7 @@ use rio_backend::sugarloaf::{font::SugarloafFont, Object, SugarloafErrors}; | |||
use std::borrow::Cow; | |||
use std::collections::HashMap; | |||
use std::error::Error; | |||
use std::os::fd::IntoRawFd; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to add this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not at all. I've removed it
@@ -839,6 +840,32 @@ impl<T: EventListener + Clone + std::marker::Send + 'static> ContextManager<T> { | |||
self.current_route = self.current().route_id; | |||
} | |||
|
|||
#[inline] | |||
pub fn move_current_to_prev(&mut self) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add just one test to ensure the functionality?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added two tests
Niiicee! thank you @agjini |
No description provided.