diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-10-31 22:25:41 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-10-31 23:01:40 +0100 |
| commit | 1975c0d93373c41f9aef943980cb783188603e6d (patch) | |
| tree | b2a2499a1e012f40e43ae6e98dba8536a5949659 | |
| parent | 4aa2b717f9e050783b567540d9bb0193d692e3e9 (diff) | |
fnkeys.tes: guard against non-decimal radixes
After setting a non-decimal radix (e.g. 16^R), all of the fnkeys.tes
command-line editing macros would be broken.
Sometimes this can happen by accident.
It would be very tricky to write these macros in a way that works with any
currently configured radix.
So instead we now insert all of the ^T macros via :M, preserving the original radix.
As the first thing we call :M#^T^R, which checks the radix against 10 and throws
an error (currently division by zero, but this will be changed once we have
proper error handling constructs).
| -rw-r--r-- | lib/fnkeys.tes | bin | 5102 -> 5469 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/lib/fnkeys.tes b/lib/fnkeys.tes Binary files differindex f58a26a..d3ebc38 100644 --- a/lib/fnkeys.tes +++ b/lib/fnkeys.tes |
