summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-13 07:42:26 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-13 07:42:26 +0300
commit61ce76bde91aaa6a5267e88577e10115f9627e5f (patch)
tree5b1c7c98580c7109d9a6862e72a671a43b4554d5 /src/gmdocument.c
parentfab098d5701a55fd4a0b3fb74ae332797e3be377 (diff)
Toggle sidebar visibility; save width and mode
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c4
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
910const iString *source_GmDocument(const iGmDocument *d) {
911 return &d->source;
912}
913
910iRangecc findText_GmDocument(const iGmDocument *d, const iString *text, const char *start) { 914iRangecc 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);