aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/picker.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-08 06:52:04 +0000
committerBlaž Hrastnik2021-04-08 06:52:04 +0000
commit8b33ba2284f88bea4c6144364d75189255466661 (patch)
treeae826a57cbbb2134b5375e2c976c59eebcef856d /helix-term/src/ui/picker.rs
parent58c5fec592a825bed0b829cd0f46030c09cb0a11 (diff)
Correct the naming issue with vsplit and hsplit being swapped.
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index ef2fe2a8..39580f66 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -168,7 +168,7 @@ impl<T: 'static> Component for Picker<T> {
modifiers: KeyModifiers::CONTROL,
} => {
if let Some(option) = self.selection() {
- (self.callback_fn)(&mut cx.editor, option, Action::VerticalSplit);
+ (self.callback_fn)(&mut cx.editor, option, Action::HorizontalSplit);
}
return close_fn;
}
@@ -177,7 +177,7 @@ impl<T: 'static> Component for Picker<T> {
modifiers: KeyModifiers::CONTROL,
} => {
if let Some(option) = self.selection() {
- (self.callback_fn)(&mut cx.editor, option, Action::HorizontalSplit);
+ (self.callback_fn)(&mut cx.editor, option, Action::VerticalSplit);
}
return close_fn;
}