diff options
author | Ivan Tham | 2021-06-29 07:13:30 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-07-04 09:01:59 +0000 |
commit | 4c190ec9d9da49adedf2e14cd813725d979b42e8 (patch) | |
tree | c0259af12c6669eb43abc6924ccc5477e0a8e2eb /helix-term/src/commands.rs | |
parent | 8985c58fd328cde512df0ac7bc577bd8a8c949a0 (diff) |
Suggestions for infobox changes
Co-authored-by: Benoît Cortier <benoit.cortier@fried-world.eu>
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 106c58d1..ddeded2d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -3406,18 +3406,18 @@ macro_rules! mode_info { // TODO: how to use one expr for both pat and expr? // TODO: how to use replaced function name as str at compile time? // TODO: extend to support multiple keys, but first solve the other two - {$name:literal, $cx:expr, $($key:expr => $func:expr; $funcs:literal),+,} => { + {$name:literal, $cx:expr, $($key:expr => $func:expr; $desc:literal),+,} => { mode_info! { $name, $cx, - $($key; $key => $func; $funcs,)+ + $($key; $key => $func; $desc,)+ } }; - {$name:literal, $cx:expr, $($key:expr; $keyp:pat => $func:expr; $funcs:literal),+,} => { + {$name:literal, $cx:expr, $($key:expr; $keyp:pat => $func:expr; $desc:literal),+,} => { $cx.editor.autoinfo = Some(Info::key( $name, vec![ $( - (vec![$key], $funcs), + (vec![$key], $desc), )+ ], )); |