diff options
author | Ondrej Holy <oholy@redhat.com> | 2015-07-08 16:37:28 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2015-08-14 10:10:14 +0200 |
commit | cd07ff485781dbe7923dc88cbb1de424e709a91d (patch) | |
tree | 96d552435cd3e1d90f81be42c9b261162d2719a9 | |
parent | 8adeb4a187406881de7850ea405dc352e590b255 (diff) | |
download | gvfs-cd07ff485781dbe7923dc88cbb1de424e709a91d.tar.gz |
gvfs-ls: Always complete mounts
Completions are not printed if path is without terminating slash and
it is equal with mount, e.g.:
gvfs-ls -c sftp://1.2.3.4
However following should be offered for example:
sftp://1.2.3.4/
sftp://1.2.3.44/
https://bugzilla.gnome.org/show_bug.cgi?id=751145
-rw-r--r-- | programs/gvfs-ls.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/programs/gvfs-ls.c b/programs/gvfs-ls.c index 160895a3..6e73aca1 100644 --- a/programs/gvfs-ls.c +++ b/programs/gvfs-ls.c @@ -342,12 +342,7 @@ print_completions (const char *arg) strchr (arg, '/') == NULL || !g_file_query_exists (parent, NULL)) { - GMount *mount; - mount = g_file_find_enclosing_mount (f, NULL, NULL); - if (mount == NULL) - print_mounts (unescaped); - else - g_object_unref (mount); + print_mounts (unescaped); } if (parent != NULL) |