Module Name: src Committed By: abhinav Date: Mon Oct 31 17:46:32 UTC 2016
Modified Files: src/lib/libedit: filecomplete.c Log Message: Fix file name auto completion in one specific case. For example if you do $mkdir -p /tmp/dir1/dir2 Then: $ls /tmp/di <TAB> auto completes to $ls /tmp/dir1/ Hitting <TAB> again auto completes to $ls /tmp/dir1/dir2 Whereas it should auto complete to $ls /tmp/dir1/dir2/ Essentially, in cases like above where you have to hit <TAB> twice to get to the match and there is only one match (because only one file/sub-directory) then auto complete doesn't work correctly. It doesn't append a trailing slash (in case of directory) or a space (in case of a file) to the match name. I have tested file name completion in sh(1) and symbol completion in gdb after this change. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/lib/libedit/filecomplete.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.