diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-26 14:31:37 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-26 14:31:37 +0200 |
commit | 3a4525ca99deaab73d5de83e00169a0f4de73035 (patch) | |
tree | 853ba32d914f9b505662f776daa033b3314be885 /src/ui/sidebarwidget.c | |
parent | 0a9d9d751ac824750df91c9299e92b6a56cba38d (diff) |
SidebarWidget: Fixed "about:" URLs in history
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index a3ff8a3e..af047fec 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -1082,6 +1082,7 @@ static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, | |||
1082 | else { | 1082 | else { |
1083 | iUrl parts; | 1083 | iUrl parts; |
1084 | init_Url(&parts, &d->url); | 1084 | init_Url(&parts, &d->url); |
1085 | const iBool isAbout = equalCase_Rangecc(parts.scheme, "about"); | ||
1085 | const iBool isGemini = equalCase_Rangecc(parts.scheme, "gemini"); | 1086 | const iBool isGemini = equalCase_Rangecc(parts.scheme, "gemini"); |
1086 | draw_Text(font, | 1087 | draw_Text(font, |
1087 | add_I2(topLeft_Rect(itemRect), | 1088 | add_I2(topLeft_Rect(itemRect), |
@@ -1089,7 +1090,7 @@ static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, | |||
1089 | fg, | 1090 | fg, |
1090 | "%s%s%s%s%s%s", | 1091 | "%s%s%s%s%s%s", |
1091 | isGemini ? "" : cstr_Rangecc(parts.scheme), | 1092 | isGemini ? "" : cstr_Rangecc(parts.scheme), |
1092 | isGemini ? "" : "://", | 1093 | isGemini ? "" : isAbout ? ":" : "://", |
1093 | escape_Color(isHover ? (isPressing ? uiTextPressed_ColorId | 1094 | escape_Color(isHover ? (isPressing ? uiTextPressed_ColorId |
1094 | : uiTextFramelessHover_ColorId) | 1095 | : uiTextFramelessHover_ColorId) |
1095 | : uiTextStrong_ColorId), | 1096 | : uiTextStrong_ColorId), |