summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file.c b/src/file.c
index a21430f..84d8735 100644
--- a/src/file.c
+++ b/src/file.c
@@ -625,6 +625,9 @@ void write_fd(FILE * f, struct roman * doc) {
sh = sh->next;
}
+ // save movetosheet in sc file
+ if (doc->cur_sh != NULL) fprintf (f, "movetosheet \"%s\"\n", doc->cur_sh->name);
+
// write marks of document
write_marks(f);