From 3e12b0099342be12db1db64e36ca4ff29613f122 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Mon, 13 Sep 2021 04:48:12 -0400 Subject: Add `no_op` command (#743) * Add `no_op` command * Document `no_op` in `remapping.md`--- helix-term/src/commands.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-term') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index fb885740..c5409494 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -162,6 +162,7 @@ impl Command { #[rustfmt::skip] commands!( + no_op, "Do nothing", move_char_left, "Move left", move_char_right, "Move right", move_line_up, "Move up", @@ -361,6 +362,8 @@ impl PartialEq for Command { } } +fn no_op(_cx: &mut Context) {} + fn move_impl(cx: &mut Context, move_fn: F, dir: Direction, behaviour: Movement) where F: Fn(RopeSlice, Range, Direction, usize, Movement) -> Range, -- cgit v1.2.3-70-g09d2