From 902940401d1c1e657cdaf3e7bae8cbb89d14ffa9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 15 Nov 2026 08:57:03 +0100 Subject: added left shift (^<) and right shift (^>) operators Previously you'd have to write `a * 2^*b` for left shift, which is inefficient and cumbersome. --- src/core-commands.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core-commands.c') diff --git a/src/core-commands.c b/src/core-commands.c index b7e7a60..f7e6f01 100644 --- a/src/core-commands.c +++ b/src/core-commands.c @@ -1453,6 +1453,8 @@ teco_state_control_input(teco_machine_main_t *ctx, gunichar chr, GError **error) ['*'] = {&teco_state_start, teco_state_control_pow}, ['/'] = {&teco_state_start, teco_state_control_mod}, ['#'] = {&teco_state_start, teco_state_control_xor}, + ['<'] = {&teco_state_start, teco_state_control_left_shift}, + ['>'] = {&teco_state_start, teco_state_control_right_shift}, /* * Commands -- cgit v1.2.3