diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 7bf0beca..0722976a 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1980,16 +1980,7 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
1980 | return iTrue; | 1980 | return iTrue; |
1981 | } | 1981 | } |
1982 | else if (equal_Command(cmd, "navigate.root") && document_App() == d) { | 1982 | else if (equal_Command(cmd, "navigate.root") && document_App() == d) { |
1983 | iUrl parts; | 1983 | postCommandf_App("open url:%s/", cstr_Rangecc(urlRoot_String(d->mod.url))); |
1984 | init_Url(&parts, d->mod.url); | ||
1985 | const char *rootEnd = parts.path.start; | ||
1986 | const iRangecc user = urlUser_String(d->mod.url); | ||
1987 | if (!isEmpty_Range(&user)) { | ||
1988 | rootEnd = user.end; | ||
1989 | } | ||
1990 | postCommandf_App( | ||
1991 | "open url:%s/", | ||
1992 | cstr_Rangecc((iRangecc){ constBegin_String(d->mod.url), rootEnd })); | ||
1993 | return iTrue; | 1984 | return iTrue; |
1994 | } | 1985 | } |
1995 | else if (equalWidget_Command(cmd, w, "scroll.moved")) { | 1986 | else if (equalWidget_Command(cmd, w, "scroll.moved")) { |