diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-29 13:40:54 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-29 13:41:35 +0300 |
commit | f9117532955f0d8935971eb1053f13f9ecab7662 (patch) | |
tree | 843914f355dc8da3cadaa6bd450075c7dc501054 /src/gmdocument.c | |
parent | 6074a467110bfb4e40c3e659cc674d7bbaa82d5a (diff) |
Preferences: Collapse preformatted blocks on page load
IssueID #180
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 7fddc575..313fd40a 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -432,6 +432,9 @@ static void doLayout_GmDocument_(iGmDocument *d) { | |||
432 | meta.flags = constValue_Array(oldPreMeta, preIndex, iGmPreMeta).flags & | 432 | meta.flags = constValue_Array(oldPreMeta, preIndex, iGmPreMeta).flags & |
433 | folded_GmPreMetaFlag; | 433 | folded_GmPreMetaFlag; |
434 | } | 434 | } |
435 | else if (prefs->collapsePreOnLoad) { | ||
436 | meta.flags |= folded_GmPreMetaFlag; | ||
437 | } | ||
435 | pushBack_Array(&d->preMeta, &meta); | 438 | pushBack_Array(&d->preMeta, &meta); |
436 | continue; | 439 | continue; |
437 | } | 440 | } |