[gvfs] gvfs-ls: Always complete mounts
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gvfs-ls: Always complete mounts
- Date: Fri, 14 Aug 2015 08:12:25 +0000 (UTC)
commit cd07ff485781dbe7923dc88cbb1de424e709a91d
Author: Ondrej Holy <oholy redhat com>
Date: Wed Jul 8 16:37:28 2015 +0200
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
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 160895a..6e73aca 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]