diff options
author | Ondrej Holy <oholy@redhat.com> | 2015-06-18 09:38:49 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2015-08-14 10:09:30 +0200 |
commit | 372679bd9aaf427ad6054405f544e92c4a19a5e1 (patch) | |
tree | 7f5d0c0f18ae924e16eaa6364f81c770f5843f40 | |
parent | a807f12d5663ab7f2767bddf8f8ab20ae886297d (diff) | |
download | gvfs-372679bd9aaf427ad6054405f544e92c4a19a5e1.tar.gz |
gvfs-ls: Complete local uris as uris
gvfs-ls suggests completions for file:// uris as absolute paths, but
it should be also uris. E.g. gvfs-ls -c file:///
/bin/
/lib/
...
It should be file:///bin/ etc. instead.
https://bugzilla.gnome.org/show_bug.cgi?id=751145
-rw-r--r-- | programs/gvfs-ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/gvfs-ls.c b/programs/gvfs-ls.c index 22bf0e8e..e29c99d7 100644 --- a/programs/gvfs-ls.c +++ b/programs/gvfs-ls.c @@ -271,7 +271,7 @@ show_completed_file (GFile *hit, GFile *cwd_f; GFile *home; - if (g_file_is_native (hit)) + if (g_file_is_native (hit) && !g_str_has_prefix (arg, "file://")) { cwd = g_get_current_dir (); cwd_f = g_file_new_for_path (cwd); |