summaryrefslogtreecommitdiff
path: root/helix-term/src/ui/menu.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-12 07:21:03 +0000
committerBlaž Hrastnik2021-11-12 07:21:03 +0000
commitd3def16584f7f35a64ab2bad578436bd13cc18b6 (patch)
tree979330a77ffc5ba28b5627dc6d74d7402c7b4f67 /helix-term/src/ui/menu.rs
parentfa0cb010e16c6a7d95b8849f073f472b0bd710be (diff)
fix: shift-tab mappings broken after efc2b4c7
Diffstat (limited to 'helix-term/src/ui/menu.rs')
-rw-r--r--helix-term/src/ui/menu.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs
index 8278bd29..e891c149 100644
--- a/helix-term/src/ui/menu.rs
+++ b/helix-term/src/ui/menu.rs
@@ -1,6 +1,6 @@
use crate::{
compositor::{Component, Compositor, Context, EventResult},
- ctrl, key,
+ ctrl, key, shift,
};
use crossterm::event::Event;
use tui::{buffer::Buffer as Surface, widgets::Table};
@@ -202,7 +202,7 @@ impl<T: Item + 'static> Component for Menu<T> {
return close_fn;
}
// arrow up/ctrl-p/shift-tab prev completion choice (including updating the doc)
- key!(BackTab) | key!(Up) | ctrl!('p') | ctrl!('k') => {
+ shift!(BackTab) | key!(Up) | ctrl!('p') | ctrl!('k') => {
self.move_up();
(self.callback_fn)(cx.editor, self.selection(), MenuEvent::Update);
return EventResult::Consumed(None);