Skip to content

Commit

Permalink
change mode back to normal after 'd' or 'x' cut under visual mode
Browse files Browse the repository at this point in the history
  • Loading branch information
deephbz committed Dec 31, 2024
1 parent 1800dcd commit bd30103
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/edit_mode/vi/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ impl ParsedViSequence {
{
Some(ViMode::Insert)
}
(Some(Command::Delete), ParseResult::Incomplete) => Some(ViMode::Normal),
(Some(Command::Delete), ParseResult::Incomplete)
| (Some(Command::DeleteChar), ParseResult::Incomplete)
| (Some(Command::DeleteToEnd), ParseResult::Incomplete)
| (Some(Command::Delete), ParseResult::Valid(_))
| (Some(Command::DeleteChar), ParseResult::Valid(_))
| (Some(Command::DeleteToEnd), ParseResult::Valid(_)) => Some(ViMode::Normal),
_ => None,
}
}
Expand Down

0 comments on commit bd30103

Please sign in to comment.