diff options
author | James Westman <james@jwestman.net> | 2021-02-12 16:48:21 -0600 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2021-02-12 23:47:26 +0000 |
commit | 4fad42b7b478946ba9d0d72107b6970468827647 (patch) | |
tree | 885daa357a1bee865c4f5a8c5b359ee19727f174 | |
parent | 807b42cc0234b3834219661fb98b10418c85b16f (diff) | |
download | nautilus-4fad42b7b478946ba9d0d72107b6970468827647.tar.gz |
location-entry: Use g_strstrip()
Replace g_strchomp and g_strchug with g_strstrip, for simplicity.
-rw-r--r-- | src/nautilus-location-entry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-location-entry.c b/src/nautilus-location-entry.c index 83c3a6fd9..7d14a9dc3 100644 --- a/src/nautilus-location-entry.c +++ b/src/nautilus-location-entry.c @@ -382,8 +382,8 @@ update_completions_store (gpointer callback_data) user_location = gtk_editable_get_chars (editable, 0, -1); } - user_location = g_strchug (user_location); - user_location = g_strchomp (user_location); + g_strstrip (user_location); + priv->idle_id = 0; uri_scheme = g_uri_parse_scheme (user_location); |