skip `.' and `..' directories in TAB completion
PATCH 1/1 skip `.' and `..' directories in TAB completion
This patch skips . and .. directories in tab completion. They're basicaly useless to the user, and this mimics bash completion behaviour.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)
* normal/completion.c (iterate_dir): Skip .' and ..' directories.
normal/completion.c +1 -1
@@ -138,7 +138,7 @@ iterate_dir (const char *filename, int dif (add_completion (filename, prefix,GRUB_COMPLETION_TYPE_FILE ))return 1 ; } -else +else if (grub_strcmp (filename,"." ) &&grub_strcmp (filename,".." )) {char fname[grub_strlen (filename) +2 ];
Quoted 2 lines · Robert Millan
This patch skips . and .. directories in tab completion. They're basicaly useless to the user, and this mimics bash completion behaviour.
Okay for me.
Thanks,
Okuji
Quoted 5 lines · Yoshinori K. Okuji
Quoted 2 lines · Robert Millan
This patch skips . and .. directories in tab completion. They're basicaly useless to the user, and this mimics bash completion behaviour.
Okay for me.
Committed.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)