summaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-06-07 08:38:20 -0300
committerAndrés <andmarti@gmail.com>2021-06-07 08:38:20 -0300
commit964c48f97419c15fb601e16d65e4b7ee2f59cd4c (patch)
tree204d693cbbe69fefd926484e67353bb3b25b2e68 /src/undo.c
parent47e2600998ccf73945bc8f31561a9a3c4d27cb86 (diff)
small fix when pasting yanked ents
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c
index df169f8..8909a23 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -568,7 +568,7 @@ void save_yl_pointer_after_calloc(struct ent_ptr * e) {
*/
void copy_cell_to_undostruct (struct ent_ptr * e_ptr, struct sheet * sh_ori, struct ent * ori, char type) {
struct ent_ptr * new_ptr = e_ptr;
- struct ent * new = e_ptr->vp;
+ struct ent * new = malloc(sizeof(struct ent));
// initialize the 'ent'
cleanent(new);