summaryrefslogtreecommitdiffstats
path: root/src/color.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-30 17:01:32 -0300
committerAndrés <andmarti@gmail.com>2021-03-30 17:01:32 -0300
commit341b1ff59874ecd07dfe4b6290637d826f1100a6 (patch)
treeca743b8a31b4b0ad8a289f3a38d731bac4069b0c /src/color.c
parentaa0cf0e4a5b33944dcecdef85520ddd27373a8ce (diff)
Added UNDO and YANK macros
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/color.c b/src/color.c
index c7836a1..6106853 100644
--- a/src/color.c
+++ b/src/color.c
@@ -397,7 +397,7 @@ void color_cell(int r, int c, int rf, int cf, char * str) {
#ifdef UNDO
create_undo_action();
- copy_to_undostruct(i, j, i, j, 'd');
+ copy_to_undostruct(i, j, i, j, UNDO_DEL);
#endif
}
@@ -448,7 +448,7 @@ void color_cell(int r, int c, int rf, int cf, char * str) {
if (! loading) {
#ifdef UNDO
- copy_to_undostruct(i, j, i, j, 'a');
+ copy_to_undostruct(i, j, i, j, UNDO_ADD);
end_undo_action();
#endif
}
@@ -496,7 +496,7 @@ void unformat(int r, int c, int rf, int cf) {
if ( (n = *ATBL(tbl, i, j)) && n->ucolor != NULL) {
if (! loading) {
#ifdef UNDO
- copy_to_undostruct(i, j, i, j, 'd');
+ copy_to_undostruct(i, j, i, j, UNDO_DEL);
#endif
}
@@ -505,7 +505,7 @@ void unformat(int r, int c, int rf, int cf) {
if (! loading) {
#ifdef UNDO
- copy_to_undostruct(i, j, i, j, 'a');
+ copy_to_undostruct(i, j, i, j, UNDO_ADD);
#endif
}
}