From 910d8a61772570198eb12f752c5b7f8fcd006dc2 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 22 Nov 2026 16:53:08 +0100 Subject: 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. --- src/qreg-commands.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qreg-commands.h') 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; -- cgit v1.3