Revert "vim: Don't dismiss inline completion when switching to normal mode (#22075)" (#22131)

This reverts commit 38c0aa303e from
#22075.

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-12-17 09:24:33 +01:00 committed by GitHub
parent ebf6804afd
commit 9082a006d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -22,7 +22,7 @@ impl Vim {
if count <= 1 || Vim::globals(cx).dot_replaying {
self.create_mark("^".into(), false, cx);
self.update_editor(cx, |_, editor, cx| {
editor.dismiss_menus_and_popups(true, false, cx);
editor.dismiss_menus_and_popups(false, cx);
editor.change_selections(Some(Autoscroll::fit()), cx, |s| {
s.move_cursors_with(|map, mut cursor, _| {
*cursor.column_mut() = cursor.column().saturating_sub(1);