Change summary
crates/vim/src/state.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Detailed changes
@@ -45,9 +45,8 @@ impl Display for Mode {
impl Mode {
pub fn is_visual(&self) -> bool {
match self {
- Mode::Normal | Mode::Insert | Mode::Replace => false,
- Mode::Visual | Mode::VisualLine | Mode::VisualBlock => true,
- Mode::HelixNormal => false,
+ Self::Visual | Self::VisualLine | Self::VisualBlock => true,
+ Self::Normal | Self::Insert | Self::Replace | Self::HelixNormal => false,
}
}
}