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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmds/cmds.c b/src/cmds/cmds.c
index e029d8d..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;
@@ -2934,11 +2934,13 @@ int is_single_command (struct block * buf, long timeout) {
else if (buf->value == L'P' && bs == 2 && (
buf->pnext->value == L'v' ||
buf->pnext->value == L'f' ||
++ buf->pnext->value == L't' ||
buf->pnext->value == L'c' ) ) result = EDITION_CMD; // paste yanked cells below or left
else if (buf->value == L'T' && bs == 2 && (
buf->pnext->value == L'v' ||
buf->pnext->value == L'f' ||
++ buf->pnext->value == L't' ||
buf->pnext->value == L'c' ) ) result = EDITION_CMD; // paste yanked cells above or right
else if (buf->value == L'a' && bs == 2 && // autofit