git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue MAKEDEV commands in a loop (RHBZ#507374).
[libguestfs.git]
/
fish
/
completion.c
diff --git
a/fish/completion.c
b/fish/completion.c
index
95c3e5d
..
e8d8cea
100644
(file)
--- a/
fish/completion.c
+++ b/
fish/completion.c
@@
-176,6
+176,10
@@
static const char *const commands[] = {
"find",
"e2fsck-f",
"sleep",
"find",
"e2fsck-f",
"sleep",
+ "ntfs-3g-probe",
+ "sh",
+ "sh-lines",
+ "glob-expand",
NULL
};
NULL
};
@@
-190,6
+194,8
@@
generator (const char *text, int state)
len = strlen (text);
}
len = strlen (text);
}
+ rl_attempted_completion_over = 1;
+
while ((name = commands[index]) != NULL) {
index++;
if (strncasecmp (name, text, len) == 0)
while ((name = commands[index]) != NULL) {
index++;
if (strncasecmp (name, text, len) == 0)
@@
-206,8
+212,12
@@
char **do_completion (const char *text, int start, int end)
char **matches = NULL;
#ifdef HAVE_LIBREADLINE
char **matches = NULL;
#ifdef HAVE_LIBREADLINE
+ rl_completion_append_character = ' ';
+
if (start == 0)
matches = rl_completion_matches (text, generator);
if (start == 0)
matches = rl_completion_matches (text, generator);
+ else if (complete_dest_paths)
+ matches = rl_completion_matches (text, complete_dest_paths_generator);
#endif
return matches;
#endif
return matches;