From bf293d976fffcc80c4e4f26d553cda33746b95bc Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 7 Nov 2020 19:28:38 +0200 Subject: GmRequest: Working on Gopher requests Todo: Move this code to a separate file. --- src/ui/documentwidget.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/documentwidget.c') 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) { } static int forceBreakWidth_DocumentWidget_(const iDocumentWidget *d) { + if (equalCase_Rangecc(urlScheme_String(d->mod.url), "gopher")) { + return documentWidth_DocumentWidget_(d); + } if (forceLineWrap_App()) { const iRect bounds = bounds_Widget(constAs_Widget(d)); const iRect docBounds = documentBounds_DocumentWidget_(d); -- cgit v1.2.3