aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/qreg-commands.h
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-22 16:53:08 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-22 19:51:04 +0100
commit910d8a61772570198eb12f752c5b7f8fcd006dc2 (patch)
tree13fcd9805c3a82e8b39691a1e6b5d2e81662f784 /src/qreg-commands.h
parentb283996b6ecffc3a1d05c52df02c89ec86cafa96 (diff)
implemented the FQq (free Q-register) command and extended EF
Since Q-registers can be dynamically allocated, we must have a command for freeing them as well. This is especially important when using long Q-register names to implement arrays and other complex data structures. To ease freeing entire arrays, the :FQ[array.] modification can be used -- this will free all registers with the given prefix efficiently. There is currently no variant that tells you whether the register actually existed -- you can first check with :Qq if that is important. EF has also been extended to free the currently edited register - which is also what Video TECO appeared to do. If the currently edited register is freed, we edit the current buffer again.
Diffstat (limited to 'src/qreg-commands.h')
-rw-r--r--src/qreg-commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qreg-commands.h b/src/qreg-commands.h
index 51f792b..fb78ee9 100644
--- a/src/qreg-commands.h
+++ b/src/qreg-commands.h
@@ -92,3 +92,5 @@ extern teco_state_t teco_state_macro;
extern teco_state_t teco_state_indirect;
extern teco_state_t teco_state_copytoqreg;
+
+extern teco_state_t teco_state_freeqreg;