@@ -2,7 +2,7 @@ use crate::compositor::{Component, Compositor, Context, EventResult};
2use crate::{alt, ctrl, key, shift, ui};
2use crate::{alt, ctrl, key, shift, ui};
3use crossterm::event::Event;
3use crossterm::event::Event;
4use helix_view::input::KeyEvent;
4use helix_view::input::KeyEvent;
5−use helix_view::keyboard::{KeyCode, KeyModifiers};
5+use helix_view::keyboard::KeyCode;
6use std::{borrow::Cow, ops::RangeFrom};
6use std::{borrow::Cow, ops::RangeFrom};
7use tui::buffer::Buffer as Surface;
7use tui::buffer::Buffer as Surface;
8use tui::widgets::{Block, Borders, Widget};
8use tui::widgets::{Block, Borders, Widget};
@@ -529,11 +529,11 @@ impl Component for Prompt {
529 (self.callback_fn)(cx, &self.line, PromptEvent::Update)
529 (self.callback_fn)(cx, &self.line, PromptEvent::Update)
531 ctrl!('q') => self.exit_selection(),
531 ctrl!('q') => self.exit_selection(),
532− // any char event that's not combined with control or mapped to any other combo
532+ // any char event that's not mapped to any other combo
533 KeyEvent {
533 KeyEvent {
534 code: KeyCode::Char(c),
534 code: KeyCode::Char(c),
535− modifiers,
535+ modifiers: _,
536− } if !modifiers.contains(KeyModifiers::CONTROL) => {
536+ } => {
537 self.insert_char(c, cx);
537 self.insert_char(c, cx);
538 (self.callback_fn)(cx, &self.line, PromptEvent::Update);
538 (self.callback_fn)(cx, &self.line, PromptEvent::Update);