diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-13 07:42:26 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-13 07:42:26 +0300 |
commit | 61ce76bde91aaa6a5267e88577e10115f9627e5f (patch) | |
tree | 5b1c7c98580c7109d9a6862e72a671a43b4554d5 /src/gmdocument.c | |
parent | fab098d5701a55fd4a0b3fb74ae332797e3be377 (diff) |
Toggle sidebar visibility; save width and mode
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 3fa4a32a..ed1d1cae 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -907,6 +907,10 @@ const iArray *headings_GmDocument(const iGmDocument *d) { | |||
907 | return &d->headings; | 907 | return &d->headings; |
908 | } | 908 | } |
909 | 909 | ||
910 | const iString *source_GmDocument(const iGmDocument *d) { | ||
911 | return &d->source; | ||
912 | } | ||
913 | |||
910 | iRangecc findText_GmDocument(const iGmDocument *d, const iString *text, const char *start) { | 914 | iRangecc findText_GmDocument(const iGmDocument *d, const iString *text, const char *start) { |
911 | const char * src = constBegin_String(&d->source); | 915 | const char * src = constBegin_String(&d->source); |
912 | const size_t startPos = (start ? start - src : 0); | 916 | const size_t startPos = (start ? start - src : 0); |