Skip to content

Commit

Permalink
Move left when exiting insert mode
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Stan <[email protected]>
  • Loading branch information
andreistan26 committed Jan 4, 2024
1 parent aa101f4 commit bda53c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit_mode/vi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl EditMode for Vi {
(_, KeyModifiers::NONE, KeyCode::Esc) => {

Check warning on line 137 in src/edit_mode/vi/mod.rs

View workflow job for this annotation

GitHub Actions / build-lint-test (ubuntu-latest, stable, bashisms)

Diff in /home/runner/work/reedline/reedline/src/edit_mode/vi/mod.rs

Check warning on line 137 in src/edit_mode/vi/mod.rs

View workflow job for this annotation

GitHub Actions / build-lint-test (ubuntu-latest, stable, default)

Diff in /home/runner/work/reedline/reedline/src/edit_mode/vi/mod.rs

Check warning on line 137 in src/edit_mode/vi/mod.rs

View workflow job for this annotation

GitHub Actions / build-lint-test (ubuntu-latest, stable, sqlite)

Diff in /home/runner/work/reedline/reedline/src/edit_mode/vi/mod.rs

Check warning on line 137 in src/edit_mode/vi/mod.rs

View workflow job for this annotation

GitHub Actions / build-lint-test (ubuntu-latest, stable, basqlite)

Diff in /home/runner/work/reedline/reedline/src/edit_mode/vi/mod.rs

Check warning on line 137 in src/edit_mode/vi/mod.rs

View workflow job for this annotation

GitHub Actions / build-lint-test (ubuntu-latest, stable, external_printer)

Diff in /home/runner/work/reedline/reedline/src/edit_mode/vi/mod.rs
self.cache.clear();
self.mode = ViMode::Normal;
ReedlineEvent::Multiple(vec![ReedlineEvent::Esc, ReedlineEvent::Repaint])
ReedlineEvent::Multiple(vec![ReedlineEvent::Left, ReedlineEvent::Esc, ReedlineEvent::Repaint])
}
(_, KeyModifiers::NONE, KeyCode::Enter) => {
self.mode = ViMode::Insert;
Expand Down

0 comments on commit bda53c5

Please sign in to comment.