feat: Use readline binding for ctrl-a when it is not the prefix (#2626)

Previously, if the binding was being changed to something else than 'a',
we would not apply the readline shortcut (go to beginning of line).
This commit is contained in:
Nelyah
2025-03-13 23:11:31 +01:00
committed by GitHub
parent 4caca1416d
commit 28d5ff83c2

View File

@ -417,6 +417,7 @@ impl State {
KeyCode::Right => self.search.input.right(),
KeyCode::Char('f') if ctrl => self.search.input.right(),
KeyCode::Home => self.search.input.start(),
KeyCode::Char('a') if ctrl => self.search.input.start(),
KeyCode::Char('e') if ctrl => self.search.input.end(),
KeyCode::End => self.search.input.end(),
KeyCode::Backspace if ctrl => self