summaryrefslogtreecommitdiffstats
path: root/src/cmds/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmds/cmds.c')
-rw-r--r--src/cmds/cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmds/cmds.c b/src/cmds/cmds.c
index cd32bcf..ba2fba8 100644
--- a/src/cmds/cmds.c
+++ b/src/cmds/cmds.c
@@ -366,11 +366,11 @@ void copyent(struct ent * n, struct sheet * sh_p, struct ent * p, int dr, int dc
sc_error("copyent: internal error");
return;
}
- n->flags = may_sync;
if (p->flags & is_deleted)
n->flags |= is_deleted;
if (special != 'f') {
+ n->flags = may_sync;
if (p->flags & is_valid) {
n->v = p->v;
n->flags |= p->flags & is_valid;