renamed fern.rs back to main.rs
This commit is contained in:
@@ -161,15 +161,14 @@ impl ViCmd {
|
||||
}
|
||||
/// If a ViCmd has a linewise motion, but no verb, we change it to charwise
|
||||
pub fn alter_line_motion_if_no_verb(&mut self) {
|
||||
if self.is_line_motion() && self.verb.is_none() {
|
||||
if let Some(motion) = self.motion.as_mut() {
|
||||
if self.is_line_motion() && self.verb.is_none()
|
||||
&& let Some(motion) = self.motion.as_mut() {
|
||||
match motion.1 {
|
||||
Motion::LineUp => motion.1 = Motion::LineUpCharwise,
|
||||
Motion::LineDown => motion.1 = Motion::LineDownCharwise,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
pub fn is_mode_transition(&self) -> bool {
|
||||
self.verb.as_ref().is_some_and(|v| {
|
||||
|
||||
Reference in New Issue
Block a user