diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2020-01-10 20:39:19 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2020-01-13 20:45:25 +0100 |
commit | 12863ff7c05e4abe601890157b222eaee9737ad5 (patch) | |
tree | a1ee93b8cfc8d37b540bdb563f43327b26ae6dfb /src/calcurse.h | |
parent | 002cf305a59d311d1dc3806009ecae90a5d9be38 (diff) | |
download | calcurse-12863ff7c05e4abe601890157b222eaee9737ad5.tar.gz calcurse-12863ff7c05e4abe601890157b222eaee9737ad5.zip |
Refactor cut and paste registers
Register REG_BLACK_HOLE can neither be copied into nor pasted from and
has been removed from the input routine.
Register 36 was not used.
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index e41bc32..7826f3a 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -161,8 +161,11 @@ #define KEYS_LABELEN 8 /* length of command description */ #define KEYS_CMDS_PER_LINE 6 /* max number of commands per line */ -/* Register definitions. */ -#define REG_BLACK_HOLE 37 +/* + * Register definitions, see ui_day.c. + * Index 0-35 is used for '0'-'9' and 'a'-'z', see keys_get(). + */ +#define REG_BLACK_HOLE 36 /* Size of the hash table the note garbage collector uses. */ #define NOTE_GC_HSIZE 1024 @@ -1115,6 +1118,7 @@ void ui_day_item_delete(unsigned); void ui_day_item_edit(void); void ui_day_item_pipe(void); void ui_day_item_repeat(void); +void ui_day_item_cut(unsigned); void ui_day_item_cut_free(unsigned); void ui_day_item_copy(unsigned); void ui_day_item_paste(unsigned); |