summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-07 19:28:38 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-07 19:28:38 +0200
commitbf293d976fffcc80c4e4f26d553cda33746b95bc (patch)
tree89110079b87fd51e1bcb597cb5b9b7c77160b129 /src/ui/documentwidget.c
parent1be45b996e3a974f35519c6b9b6d819b77c4a596 (diff)
GmRequest: Working on Gopher requests
Todo: Move this code to a separate file.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index ec79dd18..33f49ad9 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -298,6 +298,9 @@ static iRect documentBounds_DocumentWidget_(const iDocumentWidget *d) {
298} 298}
299 299
300static int forceBreakWidth_DocumentWidget_(const iDocumentWidget *d) { 300static int forceBreakWidth_DocumentWidget_(const iDocumentWidget *d) {
301 if (equalCase_Rangecc(urlScheme_String(d->mod.url), "gopher")) {
302 return documentWidth_DocumentWidget_(d);
303 }
301 if (forceLineWrap_App()) { 304 if (forceLineWrap_App()) {
302 const iRect bounds = bounds_Widget(constAs_Widget(d)); 305 const iRect bounds = bounds_Widget(constAs_Widget(d));
303 const iRect docBounds = documentBounds_DocumentWidget_(d); 306 const iRect docBounds = documentBounds_DocumentWidget_(d);