aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core-commands.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-15 08:57:03 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-15 08:57:03 +0100
commit902940401d1c1e657cdaf3e7bae8cbb89d14ffa9 (patch)
treee6811396df64a7d4e05788752d5a343357aa846f /src/core-commands.c
parentb0f4c1d2b5076c453f3767426db3eecbdc6dfd42 (diff)
added left shift (^<) and right shift (^>) operatorsHEADmaster-fmsbw-cimaster
Previously you'd have to write `a * 2^*b` for left shift, which is inefficient and cumbersome.
Diffstat (limited to 'src/core-commands.c')
-rw-r--r--src/core-commands.c2
1 files changed, 2 insertions, 0 deletions
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