on master help sign in
Fix moving with arrow keys in prompt (#1070)
commitc7cb7527bedbd8a49471fcf79216d2f78fe21ae2 authorath3 <45574139+ath3@users.noreply.github.com> dateThu 11 Nov 2021, 03:08 (5 years ago) parente0540fb
1 file changed+2−2
helix-term/src/ui/prompt.rs+2−2
helix-term/src/ui/prompt.rs+2−2
@@ -430,8 +430,8 @@ impl Component for Prompt {
430430 }
431431 alt!('b') | alt!(Left) => self.move_cursor(Movement::BackwardWord(1)),
432432 alt!('f') | alt!(Right) => self.move_cursor(Movement::ForwardWord(1)),
433− ctrl!('b') | ctrl!(Left) => self.move_cursor(Movement::BackwardChar(1)),
434− ctrl!('f') | ctrl!(Right) => self.move_cursor(Movement::ForwardChar(1)),
433+ ctrl!('b') | key!(Left) => self.move_cursor(Movement::BackwardChar(1)),
434+ ctrl!('f') | key!(Right) => self.move_cursor(Movement::ForwardChar(1)),
435435 ctrl!('e') | key!(End) => self.move_end(),
436436 ctrl!('a') | key!(Home) => self.move_start(),
437437 ctrl!('w') => self.delete_word_backwards(),