diff options
author | Andrés <andmarti@gmail.com> | 2021-06-07 08:38:20 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-06-07 08:38:20 -0300 |
commit | 964c48f97419c15fb601e16d65e4b7ee2f59cd4c (patch) | |
tree | 204d693cbbe69fefd926484e67353bb3b25b2e68 /src/undo.c | |
parent | 47e2600998ccf73945bc8f31561a9a3c4d27cb86 (diff) |
small fix when pasting yanked ents
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |