Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs20
1 files changed, 16 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 19a22601..f3753768 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -5544,7 +5544,10 @@ fn wonly(cx: &mut Context) {
}
fn select_register(cx: &mut Context) {
- cx.editor.autoinfo = Some(Info::from_registers(&cx.editor.registers));
+ cx.editor.autoinfo = Some(Info::from_registers(
+ "Select register",
+ &cx.editor.registers,
+ ));
cx.on_next_key(move |cx, event| {
cx.editor.autoinfo = None;
if let Some(ch) = event.char() {
@@ -5554,7 +5557,10 @@ fn select_register(cx: &mut Context) {
}
fn insert_register(cx: &mut Context) {
- cx.editor.autoinfo = Some(Info::from_registers(&cx.editor.registers));
+ cx.editor.autoinfo = Some(Info::from_registers(
+ "Insert register",
+ &cx.editor.registers,
+ ));
cx.on_next_key(move |cx, event| {
cx.editor.autoinfo = None;
if let Some(ch) = event.char() {
@@ -5571,7 +5577,10 @@ fn insert_register(cx: &mut Context) {
}
fn copy_between_registers(cx: &mut Context) {
- cx.editor.autoinfo = Some(Info::from_registers(&cx.editor.registers));
+ cx.editor.autoinfo = Some(Info::from_registers(
+ "Copy from register",
+ &cx.editor.registers,
+ ));
cx.on_next_key(move |cx, event| {
cx.editor.autoinfo = None;
@@ -5585,7 +5594,10 @@ fn copy_between_registers(cx: &mut Context) {
};
let values: Vec<_> = values.map(|value| value.to_string()).collect();
- cx.editor.autoinfo = Some(Info::from_registers(&cx.editor.registers));
+ cx.editor.autoinfo = Some(Info::from_registers(
+ "Copy into register",
+ &cx.editor.registers,
+ ));
cx.on_next_key(move |cx, event| {
cx.editor.autoinfo = None;