aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorath32021-11-11 02:08:19 +0000
committerGitHub2021-11-11 02:08:19 +0000
commitc7cb7527bedbd8a49471fcf79216d2f78fe21ae2 (patch)
treec979ca9f042ac4f851b4870614d464198b9cbf74
parente0540fbcc4f0c31cc968a127dedc9a6d594603ae (diff)
Fix moving with arrow keys in prompt (#1070)
-rw-r--r--helix-term/src/ui/prompt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index 4bd5659f..9a60196f 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -430,8 +430,8 @@ impl Component for Prompt {
}
alt!('b') | alt!(Left) => self.move_cursor(Movement::BackwardWord(1)),
alt!('f') | alt!(Right) => self.move_cursor(Movement::ForwardWord(1)),
- ctrl!('b') | ctrl!(Left) => self.move_cursor(Movement::BackwardChar(1)),
- ctrl!('f') | ctrl!(Right) => self.move_cursor(Movement::ForwardChar(1)),
+ ctrl!('b') | key!(Left) => self.move_cursor(Movement::BackwardChar(1)),
+ ctrl!('f') | key!(Right) => self.move_cursor(Movement::ForwardChar(1)),
ctrl!('e') | key!(End) => self.move_end(),
ctrl!('a') | key!(Home) => self.move_start(),
ctrl!('w') => self.delete_word_backwards(),