diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index d5ab5704..c4d7c56a 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2096,7 +2096,10 @@ static iString *makeQueryUrl_DocumentWidget_(const iDocumentWidget *d, | |||
2096 | appendCStr_String(url, "?"); | 2096 | appendCStr_String(url, "?"); |
2097 | iString *cleaned = copy_String(userEnteredText); | 2097 | iString *cleaned = copy_String(userEnteredText); |
2098 | if (deviceType_App() != desktop_AppDeviceType) { | 2098 | if (deviceType_App() != desktop_AppDeviceType) { |
2099 | trim_String(cleaned); /* autocorrect may insert an extra space */ | 2099 | trimEnd_String(cleaned); /* autocorrect may insert an extra space */ |
2100 | if (isEmpty_String(cleaned)) { | ||
2101 | set_String(cleaned, userEnteredText); /* user wanted just spaces? */ | ||
2102 | } | ||
2100 | } | 2103 | } |
2101 | append_String(url, collect_String(urlEncode_String(cleaned))); | 2104 | append_String(url, collect_String(urlEncode_String(cleaned))); |
2102 | delete_String(cleaned); | 2105 | delete_String(cleaned); |