diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-25 09:12:27 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-25 09:12:27 +0300 |
commit | 89eca3384af875dc59f2563c33f8e35a923fbfe1 (patch) | |
tree | 40bdcc105aa8ff3b343fc3f93d44376a7f41acad /src/ui/window.c | |
parent | a81b43d33c7b37996cd04c527917c3651c5cdc65 (diff) |
Encode spaces in URLs
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 896b1e66..e08f6d6c 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -78,7 +78,9 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { | |||
78 | if (equal_Command(cmd, "input.ended")) { | 78 | if (equal_Command(cmd, "input.ended")) { |
79 | iInputWidget *url = findChild_Widget(navBar, "url"); | 79 | iInputWidget *url = findChild_Widget(navBar, "url"); |
80 | if (arg_Command(cmd) && pointer_Command(cmd) == url) { | 80 | if (arg_Command(cmd) && pointer_Command(cmd) == url) { |
81 | postCommandf_App("open url:%s", cstr_String(text_InputWidget(url))); | 81 | postCommandf_App( |
82 | "open url:%s", | ||
83 | cstr_String(text_InputWidget(url))); | ||
82 | return iTrue; | 84 | return iTrue; |
83 | } | 85 | } |
84 | } | 86 | } |