diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-24 05:13:39 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-24 05:13:39 +0200 |
commit | 925e57fe599931cb41b5a6f8a8ed4085e7a12987 (patch) | |
tree | b5b258d4e0a178b43b6ff765d1aa607a86f5fc17 /src | |
parent | 0e21020c2bac9c63f27900dbf1ba38055e9b2e82 (diff) |
Cleanup
Diffstat (limited to 'src')
-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")) { |