summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorV. Guruprasad <prasad@inspiredresearch.com>2022-09-22 12:45:10 -0400
committerV. Guruprasad <prasad@inspiredresearch.com>2022-09-22 12:46:53 -0400
commitba61e02eca9ef2377606222930c7cfb29944948b (patch)
treed299b1baf7b1c55e856e753eeaff6cb80c23c728
parent9bed48359f34f5a4a29725d38cece30d1d3d528c (diff)
return to last active sheet on open
-rw-r--r--src/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file.c b/src/file.c
index a21430f..31c47a7 100644
--- a/src/file.c
+++ b/src/file.c
@@ -625,6 +625,8 @@ void write_fd(FILE * f, struct roman * doc) {
sh = sh->next;
}
+ if (doc->cur_sh != NULL)
+ fprintf (f, "movetosheet \"%s\"\n", doc->cur_sh->name);
// write marks of document
write_marks(f);