commit 15c6396d42b06a85a50a78e15bb1940159647a5f
parent 2c19345e58ddc0def4f4cb0e65ea249519cb43f2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 13 May 2023 12:31:09 +0200
tweaks: rename a symbol (to be clearer), and add three missing comments
Diffstat:
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/definitions.h b/src/definitions.h
@@ -219,7 +219,7 @@
* needs execution or a specified function name is invalid. */
#define MORE_PLANTS 0x4EA
#define MISSING_BRACE 0x4EB
-#define PLANTED_COMMAND 0x4EC
+#define PLANTED_A_COMMAND 0x4EC
#define NO_SUCH_FUNCTION 0x4EF
/* A special keycode for when <Tab> is pressed while the mark is on. */
diff --git a/src/global.c b/src/global.c
@@ -266,9 +266,12 @@ char *startup_problem = NULL;
#endif
#ifdef ENABLE_NANORC
char *custom_nanorc = NULL;
+ /* The argument of the --rcfile option, when given. */
char *commandname = NULL;
+ /* The name (of a function) between braces in a string bind. */
keystruct *planted_shortcut = NULL;
+ /* The function that the above name resolves to, if any. */
#endif
bool spotlighted = FALSE;
@@ -464,7 +467,7 @@ const keystruct *get_shortcut(const int keycode)
return NULL;
#endif
#ifdef ENABLE_NANORC
- if (keycode == PLANTED_COMMAND)
+ if (keycode == PLANTED_A_COMMAND)
return planted_shortcut;
#endif
diff --git a/src/winio.c b/src/winio.c
@@ -380,7 +380,7 @@ int get_code_from_plantation(void)
if (*plants_pointer != '\0')
put_back(MORE_PLANTS);
- return PLANTED_COMMAND;
+ return PLANTED_A_COMMAND;
} else {
char *opening = strchr(plants_pointer, '{');
char firstbyte = *plants_pointer;